Re: [R-pkg-devel] Unexpected multi-core CPU usage in package tests

2024-02-28 Thread Jon Clayden
On Wed, 28 Feb 2024 at 17:36, Ivan Krylov wrote: > > В Tue, 27 Feb 2024 11:14:19 + > Jon Clayden пишет: > > > My testing route is to install the packages within the > > 'rocker/r-devel' Docker container, which is Debian-based, then use > > 'time' to evaluate CPU usage. Note that, even though

Re: [R-pkg-devel] Unexpected multi-core CPU usage in package tests

2024-02-28 Thread Ivan Krylov via R-package-devel
В Tue, 27 Feb 2024 11:14:19 + Jon Clayden пишет: > My testing route is to install the packages within the > 'rocker/r-devel' Docker container, which is Debian-based, then use > 'time' to evaluate CPU usage. Note that, even though 'RNifti' does not > use OpenMP, setting OMP_NUM_THREADS

Re: [R-pkg-devel] Unable to access log operator in C

2024-02-28 Thread Avraham Adler
Thank you, Dirk. However, I am an absolute clod.I just realized; I was passing in the SEXP indicating whether or not to log the function as "log", so I "overwrote" the symbol. Excuse me while I go bang my head into the wall a few dozen times. My apologies, Avi On Wed, Feb 28, 2024 at 7:14 PM

Re: [R-pkg-devel] Unable to access log operator in C

2024-02-28 Thread Dirk Eddelbuettel
On 28 February 2024 at 19:05, Avraham Adler wrote: | I am hoping the solution to this question is simple, but I have not | been able to find one. I am building a routine in C to be called from | R. I am including Rmath.h. However, when I have a call to "log", I get | the error "called object

[R-pkg-devel] Unable to access log operator in C

2024-02-28 Thread Avraham Adler
I am hoping the solution to this question is simple, but I have not been able to find one. I am building a routine in C to be called from R. I am including Rmath.h. However, when I have a call to "log", I get the error "called object 'log' is not a function or a function pointer. When I "trick" it

[R-pkg-devel] Unexpected multi-core CPU usage in package tests

2024-02-28 Thread Jon Clayden
Dear all, I'm slightly going out of my mind trying to resolve a CRAN rejection based on the note Flavor: r-devel-linux-x86_64-debian-gcc Check: tests, Result: NOTE Running 'tinytest.R' [20s/5s] Running R code in 'tinytest.R' had CPU time 4.4 times elapsed time This applies