简体   繁体   English

如果安装程序不起作用,如何更新R版本?

[英]how do you update R version if installr does not work?

I was trying to update my R version (3.4.3, a little old) but when i was trying to install 'installr' packages and load it, I got errors 我试图更新我的R版本(3.4.3,有点旧),但是当我尝试安装“安装程序”软件包并加载它时,出现错误

> install.packages("installr")
trying URL 
'https://cran.rstudio.com/bin/windows/contrib/3.4/installr_0.20.0.zip'
Content type 'application/zip' length 265893 bytes (259 KB)
downloaded 259 KB

package ‘installr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\abc001\AppData\Local\Temp\RtmpKUhjgr\downloaded_packages

> require(installr)
 Loading required package: installr
Loading required package: stringr
Error: package or namespace load failed for ‘stringr’ in library.dynam(lib, 
package, package.lib):
DLL ‘stringi’ not found: maybe not installed for this architecture?
Failed with error:  ‘package ‘stringr’ could not be loaded’
In addition: Warning messages:
1: package ‘installr’ was built under R version 3.4.4 
2: package ‘stringr’ was built under R version 3.4.4 

After reading the errors, i guess my current problem is that 'installr' needs 'stringr' but they are built on 3.4.4. 读取错误后,我想我当前的问题是“安装程序”需要“字符串”,但它们基于3.4.4构建。 So now how do I update my R version if 'installr' depends on new R version (at least 3.4.4) but my current version is (3.4.3)? 那么,如果“安装程序”依赖于新的R版本(至少3.4.4)但当前版本为(3.4.3),那么现在如何更新我的R版本?

Thank you! 谢谢!

Try installing the stringi library. 尝试安装stringi库。

install.packages("stringi")

Then re-try installr. 然后重试安装程序。

require(installr)

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

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