Re: [R-pkg-devel] Installation error when submitting package to CRAN

2024-10-16 Thread Jeff Newmiller via R-package-devel
You should not use "library(anything)" in a package. You should rely on the Imports: field in the DESCRIPTION file along with importFrom() in your NAMESPACE file, or the Suggests: field in the DESCRIPTION file and if (requireNamespace("anypackage")) {anypackage::somefun} else {# avoid using an

Re: [R-pkg-devel] Installation error when submitting package to CRAN

2024-10-16 Thread Simon Urbanek
See the error - that looks like a temporary issue. I'd contact CRAN or resubmit. Cheers, Simon > On Oct 17, 2024, at 09:04, Michael Mahony wrote: > > > > Apologies in advance for not providing a reproducible example, but I am > unsure how to reproduce the below error, as it did not occur o

[R-pkg-devel] Installation error when submitting package to CRAN

2024-10-16 Thread Michael Mahony
Apologies in advance for not providing a reproducible example, but I am unsure how to reproduce the below error, as it did not occur on my machine. I recently submitted a package to CRAN, after which I received an automated email from lig...@statistik.tu-dortmund.de, saying my package had f

Re: [R-pkg-devel] Installation took CPU time elapsed time for rust-based package

2024-10-16 Thread Josiah Parry
Thanks, Ivan! Yes, I would use the NOT_CRAN flag. But in the case of that package, the CRAN_FLAGS are not set dynamically. It would be a welcome PR to rextendr if anyone more comfortable with Make would like to. The current template Makevars is at https://github.com/extendr/rextendr/blob/main/inst/

Re: [R-pkg-devel] Installation took CPU time elapsed time for rust-based package

2024-10-16 Thread Ivan Krylov via R-package-devel
В Wed, 16 Oct 2024 17:38:27 + D Z пишет: > if [ -n "$_R_CHECK_LIMIT_CORES" ]; then \ >   export BUILDFLAGS="-j 2 --offline"; \ This environment variable is spelled with an extra underscore: https://cran.r-project.org/doc/manuals/r-devel/R-ints.html#index-_005fR_005fCHECK_005fLIMIT_005fCORES_

[R-pkg-devel] Installation took CPU time elapsed time for rust-based package

2024-10-16 Thread D Z
Hi all, I have a new package that I submitted to CRAN, that uses rust (for reference, it's called rtiktoken and can be found here: https://github.com/DavZim/rtiktoken). The submission failed as 1-2 NOTEs were found, most importantly: Installation took CPU time 7.2 times elapsed time. In both my