[英]I can't update to R version 4
I have downloaded the latest version of R and I have tried to run code in Jupyter notebook that will update.My code and the output below:我已经下载了最新版本的 R 并且我尝试在 Jupyter 笔记本中运行将更新的代码。我的代码和下面的输出:
`# installing/loading the latest installr package:
install.packages("installr"); library(installr) # install+load installr
updateR() # updating R.'
Output I get: Warning message: "package 'installr' is in use and will not be installed" Error in winDialog(type = "ok", message = message_text): winDialog() cannot be used non-interactively Traceback:我得到的输出:警告消息:“package 'installr' is in use and will not be installed” winDialog中的错误(type =“ok”,message = message_text):winDialog()不能以非交互方式使用 Traceback:
When I type: 'install.packages("installr")当我输入:'install.packages("installr")
library(installr)
updateR()'
I get the following message:我收到以下消息:
'package 'installr' successfully unpacked and MD5 sums checked 'package 'installr' 成功解压并检查了 MD5 和
The downloaded binary packages are in C:\Users\tadhg\AppData\Local\Temp\RtmpkFhJyM\downloaded_packages Warning message: "package 'installr' was built under R version 3.6.3" Welcome to installr version 0.23.2下载的二进制包位于 C:\Users\tadhg\AppData\Local\Temp\RtmpkFhJyM\downloaded_packages 警告消息:“package 'installr' was built under R version 3.6.3” Welcome to installr version 0.23.2
More information is available on the installr project website: https://github.com/talgalili/installr/安装程序项目网站上提供了更多信息: https ://github.com/talgalili/installr/
Contact: tal.galili@gmail.com Suggestions and bug-reports can be submitted at: https://github.com/talgalili/installr/issues联系方式:tal.galili@gmail.com 建议和错误报告可以提交到: https ://github.com/talgalili/installr/issues
To suppress this message use:
suppressPackageStartupMessages(library(installr))
Error in winDialog(type = "ok", message = message_text): winDialog() cannot be used non-interactively Traceback: winDialog中的错误(type =“ok”,message = message_text):winDialog()不能以非交互方式使用 Traceback:
I had the same problem.我有同样的问题。
This helped a bit:这有点帮助:
updateR(GUI=FALSE)
However then it got:然而,它得到了:
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...
For me it seems that this package is designed for Windows only.对我来说,这个包似乎只为 Windows 设计的。 (I'm using Ubuntu).
(我使用的是 Ubuntu)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.