Re: [R-pkg-devel] could not find function "%dopar%"

2019-02-24 Thread Mohammad Ali Nilforooshan
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%

[R-pkg-devel] could not find function "%dopar%"

2019-02-24 Thread Mohammad Ali Nilforooshan
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

[R-pkg-devel] NOTE for a suggested package

2019-02-23 Thread Mohammad Ali Nilforooshan
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)