KentonWhite / ProjectTemplate

A template utility for R projects that provides a skeletal project.
http://projecttemplate.net
GNU General Public License v3.0
622 stars 159 forks source link

Updated for staged install #291

Closed KentonWhite closed 5 years ago

KentonWhite commented 5 years ago

with R 3.6, staged install is the default hardcoded config paths are changed to functions see https://developer.r-project.org/Blog/public/2019/02/14/staged-install/index.html

Types of change

Pull request checklist


Proposed changes

Staged installation is to be a new feature of R 3.6.0: it is not yet the default in R-devel but it is scheduled to become so on Mar 1. To turn it on before then, set environment variable R_INSTALL_STAGED=true : this has been done for the fedora-clang results on CRAN.

Tomas Kalibera has written a blog about this which can be seen at https://developer.r-project.org/Blog/public/2019/02/14/staged-install/index.html . For most of these packages he has some analysis of the issues at https://github.com/kalibera/rstagedinst/tree/master/hardcoded and is happy to help with interpretation (he is Cc:ed here).

Please adjust your package to work with staged installation, if possible before Mar 1. A stopgap measure is to opt out by adding

StagedInstall: no

in the DESCRIPTION file, and the CRAN team will do that for any remaining packages on which others depend (currently EmiStatR ProjectTemplate Rblpapi gWidgets2 nimble rfishbase) when the default is switched.