Re: [R-pkg-devel] Too many cores used in examples (not caused by data.table)

2023-10-27 Thread Dirk Eddelbuettel
Jouni, My CRANberriesFeed reports a new bssm package at CRAN, congratulations for sorting this out. [1,2] The OMP_NUM_THREADS setting is indeed all it takes, and it _does_ seem to be read even from a running session: i.e. you can set this inside an R session and the OpenMP code considers it in t

Re: [R-pkg-devel] Too many cores used in examples (not caused by data.table)

2023-10-27 Thread Helske, Jouni
Hi Dirk, Actually, the OMP_NUM_THREADS worked for vignettes and testthat tests, but didn't help with the examples. However, I just wrapped the problematic example with \donttest as for some reason this issue only happened with a single seemingly simple example (hence the "weird" in the earlier

Re: [R-pkg-devel] Too many cores used in examples (not caused by data.table)

2023-10-27 Thread Dirk Eddelbuettel
Hi Jouni, On 27 October 2023 at 13:02, Helske, Jouni wrote: | Actually, the OMP_NUM_THREADS worked for vignettes and testthat tests, but | didn't help with the examples. However, I just wrapped the problematic example Now I am confused. What is your understanding of why it helps in one place a