R包从CRAN移除了怎么办
2020-03-04 本文已影响0人
城管大队哈队长
最近发现我之前用的一个R包 rowr 不能装了
Warning in install.packages :
package ‘rowr’ is not available (for R version 3.6.2)
然后上网一搜发现是从CARN移除了
Package ‘rowr’ was removed from the CRAN repository.
Formerly available versions can be obtained from the archive.
Archived on 2020-01-28 as check problems were not corrected despite reminders.
Please use the canonical form https://CRAN.R-project.org/package=rowr to link to this page.
面对这种问题就是上网搜答案了……然后搜到这个答案:Install the package that has been removed from the CRAN repository easily
那么这样就方便了,我们只要找到rowr的封存地址 对应下载就行。
library(devtools)
install_url("https://cran.r-project.org/src/contrib/Archive/rowr/rowr_1.1.3.tar.gz")
当然,用果子老师或者师兄的方法也可以,就是下载安装函数不一样而已。
唯一需要注意的一点就是师兄文中说的,一些包被移除可能是因为其的一些依赖包升级导致其无法使用,所以对一些依赖包你可能得下特定的版本才行。当然rowr这个包不用