1

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.

4

1 回答 1

4

有用...

RStudio中的并行示例在用R markdown编写后通过knitr运行......

```{r parallel-do}
library(foreach)
library(parallel)
library(doParallel)
demo(sincParallel)
````

请参阅 Rpubs:: 上的输出

http://rpubs.com/Thell/6679

于 2013-06-21T23:33:59.347 回答