[R-pkg-devel] CRAN Debian error installation time
Ben Bolker
bbo|ker @end|ng |rom gm@||@com
Mon Jan 27 20:57:00 CET 2025
May have been mentioned up-thread, but perhaps you also need to
control BLAS parallelization?
https://stackoverflow.com/questions/72669579/c-how-to-set-environment-variable-so-openblas-runs-multithreaded
(also see the RhpcBLASctl package; hopefully you don't need it, but
worth knowing about)
On 2025-01-27 1:26 p.m., Guillermo Vinue wrote:
> Dear All,
>
> I am writing to you because I am getting this NOTE from the CRAN Debian
> machine that is not allowing CRAN acceptance: "Installation took CPU time
> 2.9 times elapsed time". Uwe Ligges told me that this means that I am using
> more than 2 cores, but I must not use more than 2 by default.
>
> In order to overcome this issue, I have included an R script inside the R
> folder named with my package name and this content:
>
> .onLoad <- function(libname, pkgname) {
> if (Sys.getenv("OMP_THREAD_LIMIT") == "") {
> Sys.setenv(OMP_THREAD_LIMIT = "2")
> }
> }
>
> In addition, I have included explicitly the parameter numThreads
> setThreadOptions(numThreads = 1) in the function where I use the
> setThreadOptions from the RcppParallel package. However, the CRAN NOTE
> persists.
>
> Do you know how to fix that?
>
> Many thanks in advance.
>
> Kind regards,
>
> Guillermo
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
--
Dr. Benjamin Bolker
Professor, Mathematics & Statistics and Biology, McMaster University
Director, School of Computational Science and Engineering
> E-mail is sent at my convenience; I don't expect replies outside of
working hours.
More information about the R-package-devel
mailing list