I'm coding an agent-based simulation. I plan to run parallel instances of the simulation to reduce computing time. I will use the parallel package. I want to document my code using knitr. Before I start, I'd like to confirm whether there will be any issues running the parallel package's functions from within a Markdown or Sweave document that I compile with knitr.
It works...
```{r parallel-do}
library(foreach)
library(parallel)
library(doParallel)
demo(sincParallel)
````
See output on Rpubs::
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.