I’m trying to use the OHDSI version of the SelfControlledCaseSeries-package, which utilizes the ff-package to handle big data. But something is not working with the ffwhich-function. Running the following example, provided in the ffwhich-documentation:
x <- ff::ff(10:1)
idx <- ffbase::ffwhich(x, x < 5)
Error in if (by < 1) stop("‘by’ must be > 0") : missing value where TRUE/FALSE needed In addition: Warning message: In chunk.default(from = 1L, to = 5L, by = c(integer = 46116860184273880), : NAs introduced by coercion to integer range
I have tried setting batchbytes to something smaller, running the script on another computer and also changed the location where ff-files are stored, but the error remains.
Any ideas on how to fix this? Many thanks.