A collection of Rfast functions for data analysis. Note 1: The vast majority of the functions accept matrices only, not data.frames. Note 2: Do not have matrices or vectors with have missing data (i.e NAs). We do no check about them and C++ internally transforms them into zeros (0), so you may get wrong results. Note 3: In general, make sure you give the correct input, in order to get the correct output. We do no checks and this is one of the many reasons we are fast.
Running R 4.1 on MacOS BigSur 11.5.2
The code below works before loading Rfast, but it breaks after Rfast is loaded.
The same problem was verified running the same example on a Windows PC.
require(foreach)
require(doFuture)
doFuture::registerDoFuture()
future::plan(future::multicore, workers = 2)
# WORKS FINE
foreach(i = 1:100) %dopar% { sqrt(i)}
# THIS PRODUCES AND ERROR
require(Rfast)
foreach(i = 1:100) %dopar% { sqrt(i)}
Error in vapply(where, FUN = envname, FUN.VALUE = NAcharacter, USE.NAMES = FALSE) :
values must be length 1,
but FUN(X[[5]]) result is length 0
Running R 4.1 on MacOS BigSur 11.5.2 The code below works before loading Rfast, but it breaks after Rfast is loaded. The same problem was verified running the same example on a Windows PC.