A minimal package to illustrate the behaviour of a package, containing a static vignette, depending on different R versions; specifically between version 3.3.3 (2017-03-06) Another Canoe and the current R-devel version (at creation date) 3.6.0 R Under development (unstable) (2018-06-06 r74855).
- built with the current R-devel version ´´R CMD build staticvignette´´ yells the following warning and sets the the dependency on R version 3.5.0, which is not the case, if an older R version than 3.5.0 is used:
> NB: this package now depends on R (>= 3.5.0)
> WARNING: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R. File(s) containing such objects: 'staticvignettepkg/build/vignette.rds'
Possible context for this behaviour give the R-devel NEWS https://cran.r-project.org/doc/manuals/r-devel/NEWS.html:
''R has new serialization format (version 3) which supports custom serialization of ALTREP framework objects. These objects can still be serialized in format 2, but less efficiently. Serialization format 3 also records the current native encoding of unflagged strings and converts them when de-serialized in R running under different native encoding. Format 3 comes with new serialization magic numbers (RDA3, RDB3, RDX3). Format 3 can be selected by version = 3 in save(), serialize() and saveRDS(), but format 2 remains the default for all serialization and saving of the workspace. Serialized data in format 3 cannot be read by versions of R prior to version 3.5.0.''
The package contains the R package helloworld files from RStudio as well as the directory ''vignettes''. This directory contains the a pdf document and the .pdf.asis, as described in ''R packages: Static PDF and HTML vignettes'', available under https://CRAN.R-project.org/package=R.rsp.
furthermore, the DESCRIPTION file contains the additional entries
- Suggests: R.rsp
- VignetteBuilder: R.rsp
The test.pdf is the document which results from the first entry in the google search "test pdf" (www.orimi.com/pdf-test.pdf).
> R version 3.3.3 (2017-03-06)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 16.04.4 LTS
> locale:
> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=C
> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=de_CH.UTF-8 LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
> other attached packages:
> [1] staticvignettepkg_0.1.0
> loaded via a namespace (and not attached):
> [1] backports_1.0.5 magrittr_1.5 rsconnect_0.4.1.4 rprojroot_1.2 htmltools_0.3.6 tools_3.3.3
> [7] yaml_2.1.14 Rcpp_0.12.17 stringi_1.1.2 rmarkdown_1.9 knitr_1.20 stringr_1.2.0
> [13] digest_0.6.15 evaluate_0.10
> R Under development (unstable) (2018-06-06 r74855)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 16.04.3 LTS
> Matrix products: default
> BLAS: /usr/sepp1.5.1/drwho/pack-a/r-devel-99-ro/amd64-linux-ubuntu14.04/lib/R/lib/libRblas.so
> LAPACK: /usr/sepp1.5.1/drwho/pack-a/r-devel-99-ro/amd64-linux-ubuntu14.04/lib/R/lib/libRlapack.so
> locale:
> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=C
> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
> [7] LC_PAPER=de_CH.UTF-8 LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
> loaded via a namespace (and not attached):
> [1] compiler_3.6.0