R 更新 |版本不匹配

发布于 2025-01-14 10:29:46 字数 888 浏览 2 评论 0原文

这是我第一次更新 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:

Current Version

The new directory has been created and everything seems to be as it should.

enter image description here

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:

Current Version

The new directory has been created and everything seems to be as it should.

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

述情 2025-01-21 10:29:46

在 RStudio 中,转到“工具”...“全局选项”...“常规”...“基本”.. R 会话。

它允许您选择特定的 R 版本

In RStudio, go to Tools ... Global Options ... General ... Basic .. R Sessions.

It allows you to choose a specific version of R

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文