[R-pkg-devel] R CMD build --resave-data not working

Sebastian Meyer @eb@meyer @end|ng |rom |@u@de
Thu Mar 11 22:16:01 CET 2021


This is a bug in R 4.0.0 - R 4.0.4 affecting packages using LazyData.

Two possible workarounds:

- Manually run tools::resaveRdaFiles() on your data directory before
building the package.

- Use a current development version of R (4.0.4-patched >= r80069 or
R-devel >= r79573)

Best regards,

	Sebastian Meyer


PS: This is a duplicate of a recent discussion on this list, see
https://stat.ethz.ch/pipermail/r-package-devel/2021q1/006643.html



Am 11.03.21 um 21:57 schrieb Jonathan Callahan:
> I am building a package using R 4.0.4 on OS X 10.15.7.
> 
> In a terminal I type:
> 
> R CMD build --resave-data AirSensor
> 
> Then, I check with:
> 
> R CMD check --as-cran AirSensor_1.0.8.tar.gz
> 
> Everything is fine until I see:
> 
> 
> * checking data for ASCII and uncompressed saves ... WARNING
> 
> 
> 
>   Note: significantly better compression could be obtained
> 
>         by using R CMD build --resave-data
> 
>                             old_size new_size compress
> 
>   example_pas.rda              1.6Mb    1.1Mb       xz
> 
>   example_pas_raw.rda          114Kb     86Kb       xz
> 
>   example_pat.rda              965Kb    444Kb       xz
> 
>   example_pat_failure_A.rda    527Kb    259Kb       xz
> 
>   example_pat_failure_B.rda    411Kb    198Kb       xz
> 
>   example_sensor_scaqmd.rda    108Kb     76Kb       xz
> 
> I get the same WARNING if I submit to win-builder.R-project.org.
> 
> I've built many packages in the past and am currently stumped as to what
> might be happening.
>



More information about the R-package-devel mailing list