我试图更新我的 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
阅读错误后,我想我当前的问题是“安装程序”需要“字符串”,但它们是基于 3.4.4 构建的。那么现在如果“安装程序”依赖于新的 R 版本(至少 3.4.4)但我当前的版本是(3.4.3),我该如何更新我的 R 版本?
谢谢!