[R-pkg-devel] data and load version 3
kry|ov@r00t @end|ng |rom gm@||@com
Tue Jun 30 10:33:31 CEST 2020
On Mon, 29 Jun 2020 22:55:02 +0200
Göran Broström <goran.brostrom using umu.se> wrote:
> After googling for a while (found nothing relevant in 'WRE'), I
> understand that I have two options: (i) Change 'Depends' in
> DESCRIPTION as suggested, and (ii) using save with 'version = 2' for
> the new files.
One of the steps performed by default during R CMD build is
tools::resaveRdaFiles(), which passes NULL as version= argument to
save(). Around R (not sure about this) 3.6.0 version=NULL was changed to
mean version=3, so if you want to preserve compatibility with R <
3.5.0, you may need to run tools::resaveRdaFiles(..., version = 2)
before running R CMD build --no-resave-data.
More information about the R-package-devel