wleepang / DesktopDeployR

A framework for deploying self-contained R-based applications to the desktop
Apache License 2.0
393 stars 120 forks source link

Allow installing a particular package version #12

Closed mayeulk closed 4 years ago

mayeulk commented 7 years ago

https://github.com/wleepang/DesktopDeployR/blob/8062916449b1c685706835e85f40d48e78f9ee45/dist/script/R/run.R#L20

For instance:

devtools::install_github(repo = "garthtarr/pairsD3",
                         ref = "69289763291e0fd95ac9c369bc83c23d1121eaea")

instead of devtools::install_github(repo = "garthtarr/pairsD3") This is helpful for packages changing at a fast pace, and to ensure robustness over changes, and reproducibility of scientific computations. Would it be helpful to use packrat? packrat

wleepang commented 6 years ago

I like pointing to a specific commit as a means for version pinning. I haven't had much success with packrat on its own (i.e. in my standard analysis workflow in RStudio). I personally wish there was something akin to Python's pip in R.

wleepang commented 4 years ago

Not a priority at the moment.