如何安装 R 包的开发版本 github 存储库 [英] How to install development version of R packages github repository
本文介绍了如何安装 R 包的开发版本 github 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何直接从 github 存储库安装正在开发的包,安装后如何在开发和 CRAN 版本之间切换?
我有兴趣从 git 安装的特定包是 ggplot2.
解决方案
via Hadley at https://github.com/hadley/ggplot2
<块引用>install.packages("devtools")图书馆(开发工具)dev_mode(on=T)install_github("hadley/ggplot2")# 现在使用 dev ggplot2# 完成后执行:dev_mode(on=F) #你又回到了稳定的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.
解决方案
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
这篇关于如何安装 R 包的开发版本 github 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文