some methods about how to update R
1.how to remove packages
remove.packages("mypackage")
2.check the version of R
R.version
或者
getRversion()
3.check the version of package
packageVersion("ggplot2")
4.update R packages
update.packages()
or
update.packages(ask = FALSE)
5.remove R packages
remove.packages("mypackage")
6.update the version of R
install.packages("installr")
library(installr)
updateR()
7.关于我自己的windows上R包的安装位置:更新R软件之后,你可以把旧的版本中的R包复制到新的版本的R中,另外,你不用自己亲自复制,当你更新完之后,软件会询问你是否需要把旧的版本中的R包复制到新的版本中,以及时候还要保留旧的版本中的R包
D:\software\R\R-4.2.2\library
reference:
https://blog.csdn.net/qq_18055167/article/details/83793690?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166912126116782425654728%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=166912126116782425654728&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-2-83793690-null-null.142v66control,201v3control_1,213v2t3_control2&utm_term=R%E8%AF%AD%E8%A8%80%E5%A6%82%E4%BD%95%E6%9B%B4%E6%96%B0&spm=1018.2226.3001.4187