RevolutionAnalytics / checkpoint

Install R packages from snapshots on checkpoint-server
164 stars 38 forks source link

Use pkgdepends for package installation #280

Closed hongooi73 closed 4 years ago

hongooi73 commented 5 years ago

https://github.com/r-lib/pak https://cran.r-project.org/package=pak

Among other things, should be much better than screen-scraping to detect install results.

EDIT: pak is the frontend, pkgdepends is the backend, yet to be submitted to CRAN

hongooi73 commented 4 years ago

pkgdepends/pkgcache by default caches the latest versions of packages it's seen, which is NOT what we want for checkpointing purposes.

hongooi73 commented 4 years ago

pkgdepends/pkgcache by default caches the latest versions of packages it's seen, which is NOT what we want for checkpointing purposes.

Actually because ~/.Rprofile is being read: https://github.com/r-lib/pkgdepends/issues/168

hongooi73 commented 4 years ago

Solved using withr::with_options().

hongooi73 commented 4 years ago

Local MRAN will require pkgdepends support: https://github.com/r-lib/pkgdepends/issues/88