R 更新 |版本不匹配
这是我第一次更新 R,所以我不太确定它是如何工作的。我已使用安装包从 RGUI 和 RStudio 更新了 R(适用于 Windows),并更新了所有包。
在这两种情况下,我都收到了 R 已升级到版本 4.1.3 的确认消息:
新目录已创建,一切似乎都正常。
但是,当我在 RStudio 中打开正在处理的项目和应用程序时,我仍然得到旧版本:
> R.Version()
$platform
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$status
[1] ""
$major
[1] "4"
$minor
[1] "1.2"
$year
[1] "2021"
$month
[1] "11"
$day
[1] "01"
$`svn rev`
[1] "81115"
$language
[1] "R"
$version.string
[1] "R version 4.1.2 (2021-11-01)"
$nickname
[1] "Bird Hippie"
如何在现有文件中使用新的 R 版本?
预先感谢您的帮助!
It's the first time I update R so I'm not too sure how it all works. I have updated R (for Windows) from RGUI and from RStudio with the installr package and updated all the packages.
In both cases I got confirmation messages that R has been upgraded to version 4.1.3:
The new directory has been created and everything seems to be as it should.
However, when I open the projects and apps I'm working on in RStudio, I still get the old version:
> R.Version()
$platform
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$status
[1] ""
$major
[1] "4"
$minor
[1] "1.2"
$year
[1] "2021"
$month
[1] "11"
$day
[1] "01"
It's the first time I update R so I'm not too sure how it all works. I have updated R (for Windows) from RGUI and from RStudio with the installr package and updated all the packages.
In both cases I got confirmation messages that R has been upgraded to version 4.1.3:
The new directory has been created and everything seems to be as it should.
However, when I open the projects and apps I'm working on in RStudio, I still get the old version:
svn rev`
[1] "81115"
$language
[1] "R"
$version.string
[1] "R version 4.1.2 (2021-11-01)"
$nickname
[1] "Bird Hippie"
How do I use the new R version in my existing files?
Thanks in advance for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 RStudio 中,转到“工具”...“全局选项”...“常规”...“基本”.. R 会话。
它允许您选择特定的 R 版本
In RStudio, go to Tools ... Global Options ... General ... Basic .. R Sessions.
It allows you to choose a specific version of R