Re: [R-pkg-devel] callr and CRAN policy on the max number of cores

2024-05-22 Thread Henrik Bengtsson
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

[R-pkg-devel] callr and CRAN policy on the max number of cores

2024-05-22 Thread Shu Fai Cheung
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

Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

2024-05-22 Thread Duncan Murdoch
On 2024-05-22 10:18 a.m., Dirk Eddelbuettel wrote: On 22 May 2024 at 13:54, Nixon, Michelle Pistner wrote: | Thank you both for your responses and help! Kurt-- your message makes a lot of | sense. I'll try to debug soon and will reach out if I have more questions. Interesting. Kurt, is there a

Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

2024-05-22 Thread Dirk Eddelbuettel
On 22 May 2024 at 13:54, Nixon, Michelle Pistner wrote: | Thank you both for your responses and help! Kurt-- your message makes a lot of | sense. I'll try to debug soon and will reach out if I have more questions. Interesting. Kurt, is there a recommended way to test for this (rare, I may add)

Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

2024-05-22 Thread Nixon, Michelle Pistner
Thank you both for your responses and help! Kurt-- your message makes a lot of sense. I'll try to debug soon and will reach out if I have more questions. Thanks, Michelle From: Kurt Hornik Sent: Wednesday, May 22, 2024 3:57 AM To: Dirk Eddelbuettel Cc: Nixon, Mi