@ Kevin Zen,
I had the same problem, but I think I just solved it using the importFrom field in the namespace file. I use Roxygen2 for documentation, so I just added the tag:
with a call to the foreach function. He created a field in the namespace file, for example:
importFrom(foreach,"%dopar%")
therefore, if you are not using Roxygen2, you can just put this string in your namespace, and that should do the trick too.
This should prevent the valve from being checked. However, as soon as you try to run the code on a computer that does not yet have the "foreach" package downloaded and connected via:
library(foreach)
You will receive a message stating that% dopar% was not found if "foreach" is specified in the "Import" section and not "Depends" in the DESCRIPTION file. Therefore, make sure that foreach is specified in the Dependencies box.
source share