reproduce.R - accounted for possible missing function `is.data.table`