I am developing an R package that should use the parallelization provided by the snowfall package. snowfall doesn't seem to import the same as other packages like ggplot2 , data.table , etc. I included rlecuyer , rlecuyer and snow in the description file, the namespace file, and as an import argument in the function itself. When I try to access this function, I get the following error:
Error in sfInit() : could not find function "setDefaultClusterOptions"
It seems that the sfInit function has a nostart / nostop , which he says is related to the nested use of sfInit , but this does not seem to do the trick for me.
The actual code itself uses sfInit (where I get the error), some sfExport and sfLibrary s, and sfLapply .
Possible solution: It seems to work if I move snow from the import section to the dependency section in the Desciption file. However, I do not know why.
r snowfall
TheComeOnMan
source share