[R-pkg-devel] Installation took CPU time elapsed time for rust-based package
D Z
d@v|d_j_z|mmerm@nn @end|ng |rom hotm@||@com
Wed Oct 16 19:38:27 CEST 2024
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 Makevars and Makevars.win files, I specify to use 2 cores for cargo build on CRAN machines (see below or here https://github.com/DavZim/rtiktoken/blob/master/src/Makevars#L21C2-L25C4) but I still get the NOTE. Furthermore, I only get this on Debian but not on Windows.
if [ -n "$_R_CHECK_LIMIT_CORES" ]; then \
export BUILDFLAGS="-j 2 --offline"; \
else \
export BUILDFLAGS="--offline"; \
fi
...
cargo build ${BUILDFLAGS} --lib --release --manifest-path=./rust/Cargo.toml --target-dir $(TARGET_DIR)
The check results are here
*
Windows: https://win-builder.r-project.org/incoming_pretest/rtiktoken_0.0.3_20241016_135446/Windows/00check.log (1 NOTE about misspelled words and a URL not being available)
*
Debian:https://win-builder.r-project.org/incoming_pretest/rtiktoken_0.0.3_20241016_135446/Debian/00check.log (2 NOTEs: installation time and misspelled words)
Now I am wondering if there is anything that I can do about this NOTE or if I should ignore it.
I did not find any reference to this in the "Using Rust in CRAN Packages" nor in other CRAN packages that use rust (eg gifski, string2path, arcpbf), but I might have missed something.
I found also the CARGO_BUILD_JOBS flag for rust (https://doc.rust-lang.org/cargo/reference/environment-variables.html) but as I can't reproduce the error locally (or on other GitHub Actions runners), I don't want to trial-and-test-it on CRAN servers.
Thanks, any help is appreciated!
David
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list