Problem solved!
`%dopar%` <- foreach::`%dopar%`
One of my functions does parallel processing with "doParallel" and
> "foreach". "foreach" is a dependency to "doParallel". My R package keeps
> failing, because %dopar% is not recognized as a function. I tried
> %foreach::dopar%, %parallel::dopar%
One of my functions does parallel processing with "doParallel" and
"foreach". "foreach" is a dependency to "doParallel". My R package keeps
failing, because %dopar% is not recognized as a function. I tried
%foreach::dopar%, %parallel::dopar% , %doParallel::dopar%, and
%iterators::dopar%. It didn't
I'm struggling to stop receiving a NOTE about a suggested package, and it
seems to be the problem for many people. Your help is really appreciated.
In the function, I have:
if(requireNamespace("doParallel", quietly=TRUE))
{
library("doParallel")
cl = parallel::makeCluster(ncl)