Dear list members.
I have run into a problem with examples from my package growthPheno (https://github.com/briencj/growthPheno) that take more than 10 s to execute on two flavours under r-devel. The following is the details.log:
Flavor: r-devel-linux-x86_64-debian-gcc, r-devel-windows-x86_64
Check: CRAN incoming feasibility, Result: Note_to_CRAN_maintainers
Maintainer: 'Chris Brien mailto:chris.brien at adelaide.edu.au'
Flavor: r-devel-windows-x86_64
Check: examples, Result: NOTE
Examples with CPU (user + system) or elapsed time > 10s
user system elapsed
probeSmooths 13.56 0.15 13.73
traitSmooth 13.03 0.10 13.13
When I run the examples on laptop and a desktop running Windows 10 under r-devel with all packages updated, the elapsed times were 4.26 and 4.45, respectively i.e. much less than on the CRAN platforms. These timings were achieved using the following function call from RStudio (2022.12.0 Build 353):
+ args="--as-cran", env_vars = c(NOT_CRAN = "false"))
I have also submitted the package to rhub using the following command:
rhub::check_for_cran(path = "growthPheno_2.1.18.tar.gz",
env_vars = c(`_R_CHECK_FORCE_SUGGESTS_` = "false",
`_R_CHECK_CRAN_INCOMING_USE_ASPELL_` = "false"),
email = "chris.brien at adelaide.edu.au") with the following results for timing:
The timing results were:
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
probeSmooths 6.50 0.09 6.64
traitSmooth 6.02 0.03 6.04
While these are higher than the timings on my machines, they are half those reported on in the details.log resulting from my CRAN submission.
In order to be able to pass the CRAN tests, I have reduced the examples so that the timings on my laptop are (sessionInfo is below):
user system elapsed
probeSmooths 2.32 0.06 2.45
traitSmooth 3.47 0.09 3.73
and, using rhub::check_for_CRAN, the timings > 5 s are:
user system elapsed
probeSmooths 5.16 0.07 6.42
The difficulty I am having is that I cannot be sure that the timings for r-devel-linux-x86_64-debian-gcc and r-devel-windows-x86_64 will be under 10 s, as seems to be required, if I were to resubmit the package to CRAN with the reduced examples.
I would be grateful to anyone who can suggest how I might go about determining the CRAN timings without submitting the package to CRAN.
Cheers,
Chris
Chris Brien
Adjunct Associate Professor in Statistics, UniSA STEM| web page
Senior Biostatistician, Australian Plant Phenomics Facility | researcher profile
---------------