Two parallel processes are okay, so you can use two callr background
processes ("children"), as long as you don't do heavy computations on
the main R process ("parent"). This is commonly done in many R
packages, e.g.
library(parallel)
cl <- makeCluster(2)
y <- parLapply(cl = cl, X = 1:10, fun = sl
Hil,
I am exploring the use of callr in a package. I know that for packages
that do parallel computing, we should not use more than two cores in
examples, tests, etc. when being checked on CRAN.
I believe I can use callr in tests and examples. How should I use
callr in compliance with CRAN policy