Closed themeo closed 4 years ago
it has to do with some of the dark magic that I use for NSE. I'm on it, it's just a couple of critical lines of code
could you try
devtools::install_github("bnicenboim/eeguana", ref ="experimental")
?
I think I fixed this, and also made the filter to work faster as a side effect
Works like a charm, many thanks!
There is a strange issue when
eeguana
is combined with thedoParallel
package.This results in the following error message:
Error in { : task 1 failed - "Object 'dp' not found. Perhaps you intended .id, .sample, MiPf, LLPf, RLPf or 10 more"
Even a local variable defined inside the %dopar% loop is invisible to filter().
I should mention that this is probably a border case, I checked that it only occurs in
doParallel
calls (%dopar%
) but not inforeach
calls (%do%
) and I can work around this by converting the data to a data.table beforeforeach
. On the other hand, the workaround consumes much more memory (a long table with all heavy stuff from the.segments
table attached which gets multiplied by all parallel processes in the cluster) so perhaps a general solution to this issue is possible.Dataset used in the example: https://web.tresorit.com/l/0fRc2#VnFAADBSKEbK0LwDWO2roA