当我安装ggp​​lot2的开发版本时会发生什么

Jua*_*mad 4 r ggplot2 r-package

安装ggp​​lot2的开发版是否会覆盖常规版本?我需要一个特定包的开发版本,但我不想搞砸我的东西.我可以卸载开发或者只是重新安装常规版本,然后将覆盖开发版本.我用Google搜索,一无所获.谢谢

Nic*_*ers 5

根据这个答案,使用devtools沙箱时不会覆盖:

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
Run Code Online (Sandbox Code Playgroud)

有关dev_mode的更多信息(比如指定R保存dev包的沙箱),请查看devtools文档