How can I install a package that is under development directly from a github repository and once installed how can I switch between development and CRAN versions?
The specific package I am interested in installing from git is ggplot2.
How can I install a package that is under development directly from a github repository and once installed how can I switch between development and CRAN versions?
The specific package I am interested in installing from git is ggplot2.
for compile binaries install:
for source install :
via Hadley at https://github.com/hadley/ggplot2
I have the feeling that both previous answers miss the point of your question.
Consider this:
You can control where to install packages via arguments to both
R CMD INSTALL
(via-l
) andinstall.packages()
.At run-time, you can control where to load packages from via
.libPaths()
.So it really is just a matter of setting a few variables in your
.Rprofile
(or alike) to control this.