首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我不能更新到R版本4

我不能更新到R版本4
EN

Stack Overflow用户
提问于 2022-05-04 10:54:10
回答 1查看 976关注 0票数 -1

我下载了最新版本的R,并尝试在木星笔记本上运行代码,这将是update.My代码,并输出如下:

代码语言:javascript
复制
`# installing/loading the latest installr package:
install.packages("installr"); library(installr) # install+load installr
updateR() # updating R.'

输出I get:警告消息:“包'installr‘正在使用中,不会安装”winDialog中的错误(type= "ok",message = message_text):winDialog()不能用于非交互的跟踪:

  1. updateR()
  2. check.for.updates.R(print_R_versions,GUI = GUI,page_with_download_url = paste0(cran_mirror )。"bin/windows/base/"))
  3. winDialog(type = "ok",message = message_text)
  4. stop("winDialog()不能用于non-interactively")

当我输入:'install.packages("installr")

代码语言:javascript
复制
library(installr)

updateR()'

我收到以下信息:

“'package‘installr”成功解压缩并检查MD5和

下载的二进制包在C:\Users\tadhg\AppData\Local\Temp\RtmpkFhJyM\downloaded_packages警告消息中:“软件包' installr‘是在RVersion3.6.3下构建的”欢迎安装版本0.23.2

更多信息可在installr项目网站上找到:https://github.com/talgalili/installr/

联系人: tal.galili@gmail.com建议和bug-报告可以在:https://github.com/talgalili/installr/issues上提交。

代码语言:javascript
复制
        To suppress this message use:
        suppressPackageStartupMessages(library(installr))

winDialog中的错误(type= "ok",message = message_text):winDialog()不能用于非交互的追溯:

  1. updateR()
  2. check.for.updates.R(print_R_versions,GUI = GUI,page_with_download_url = paste0(cran_mirror )。"bin/windows/base/"))
  3. winDialog(type = "ok",message = message_text)
  4. stop("winDialog()不能非交互地使用) '

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-05-27 13:44:04

我也有同样的问题。

这在一定程度上有所帮助:

代码语言:javascript
复制
 updateR(GUI=FALSE)

然而,它得到了:

代码语言:javascript
复制
The file was downloaded successfully into:
 /tmp/RtmpbZdEgx/R-4.2.0-win.exe 

Running the installer now...
sh: 1: /tmp/RtmpbZdEgx/R-4.2.0-win.exe: Permission denied

Installation status:  FALSE . Removing the file:
 /tmp/RtmpbZdEgx/R-4.2.0-win.exe 
 (In the future, you may keep the file by setting keep_install_file=TRUE) 
[1] FALSE
Warning message:
In get.installed.R.folders() :
  Could not find any R installation on your system. (You might have installed your R version on 'c:\R' without sub folders...

对我来说,这个包似乎是专为Windows设计的。(我在使用Ubuntu)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72111800

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档