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.
If you only want to update a single package, the best way to do it is using install. packages() again. In RStudio, you can also manage packages using Tools -> Install Packages.
The most direct way to get data from Github to your computer/ into R, is to download the repository. That is, click the big green button: The big, green button saying “Clone or download”, click it and choose “download zip”. Of course, for those using Git and Github, it would be appropriate to clone the repository.
via Hadley at https://github.com/hadley/ggplot2
install.packages("devtools") library(devtools) dev_mode(on=T) install_github("hadley/ggplot2") # use dev ggplot2 now # when finished do: dev_mode(on=F) #and you are back to having stable ggplot2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With