简体   繁体   English

无法更新 R

[英]Unable to update R

I have 4.0.2 version and I want to update it.我有 4.0.2 版本,我想更新它。 So I install installr and I tried to use updateR() :所以我安装了installr并尝试使用updateR()

install.packages("installr")

library(installr)

updateR()

After library(installr) I got a warning message:library(installr)我收到一条警告消息:

Installation status: FALSE .安装状态: FALSE 。 Removing the file:删除文件:

C:\\Users\\HP250~1\\AppData\\Local\\Temp\\Rtmp2RQ7lv/R-4.0.3-win.exe (In the future, you may keep the file by setting keep_install_file=TRUE) C:\\Users\\HP250~1\\AppData\\Local\\Temp\\Rtmp2RQ7lv/R-4.0.3-win.exe(以后可以通过设置keep_install_file=TRUE来保存文件)

[1] FALSE [1] 错误

Warning messages:警告信息:

1: In download_fun(exe_URL, destfile = exe_filename, quiet = FALSE, : 1: 在 download_fun(exe_URL, destfile = exe_filename, quiet = FALSE, :

downloaded length 20258816 != reported length 88237960下载长度 20258816 != 报告长度 88237960

2: In shell(install_cmd, wait = wait, ...) : > 'C:\\Users\\HP250~1\\AppData\\Local\\Temp\\Rtmp2RQ7lv/R-4.0.3-win.exe' execution failed with error code 1 2: 在 shell(install_cmd, wait = wait, ...) : > 'C:\\Users\\HP250~1\\AppData\\Local\\Temp\\Rtmp2RQ7lv/R-4.0.3-win.exe' 执行失败,错误代码1

but I continue with updateR() .但我继续updateR() Then it started loading but aftrer fe seconds (at 10-20%) stopped.然后它开始加载,但在 fe 秒后(10-20%)停止。 I got an other warning message:我收到了另一条警告消息:

The setup files are corrupted.安装文件被破坏。 Please obtain a new copy of the program.请获取该程序的新副本。

What is the problem?问题是什么? How can I fix it?我该如何解决?

Thanks in advance!提前致谢!

I deleted Temporary Files and problem solved.我删除了临时文件并解决了问题。 I don't know why, but everything is ok now.我不知道为什么,但现在一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM