在Windows中更新R
发布时间:2020-12-13 20:18:32 所属栏目:Windows 来源:网络整理
导读:在 this post和 this link之后,我试图更新我的R版本. sessionInfo() R version 2.14.0 (2011-10-31) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY
在
this post和
this link之后,我试图更新我的R版本.
sessionInfo() R version 2.14.0 (2011-10-31) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] installr_0.9 loaded via a namespace (and not attached): [1] tools_2.14.0 但是当我运行代码 updateR() Error in file(con,"r") : cannot open the connection 运行以下命令时,它显示完全相同的错误: check.for.updates.R() # tells you if there is a new version of R or not. Error in file(con,"r") : cannot open the connection install.R() # download and run the latest R installer Error in file(con,"r") : cannot open the connection 如何更新我的R版本?
安装程序包的URL可能已过期.只需
go the R website并下载最新版本.
您将不得不手动重新安装您的软件包,这可能是一个痛苦.您可以在旧R中使用rownames(installed.packages())来获取当前安装的软件包的列表,以便当您访问新的R时,您可以将其清除并重新安装. 你甚至可以做 sprintf('install.packages(%s)',paste(shQuote(rownames(installed.packages())),collapse=',')) 然后将该命令复制粘贴到您的新R中以尝试重新安装在您的旧R上安装的所有内容.我个人喜欢,只需要安装它们,因为我需要它,所以如果我有包我不再使用在旧的R,除非我需要,否则我不用重新安装它们. 另外,上述可能会失败,只因为您当前的R与新R相比较旧,所以某些软件包可能不再兼容. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
推荐文章
站长推荐
热点阅读