我想编写我的r标记文件但是我收到此错误:
... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
我阅读了一些安装此软件包的帖子:
install.packages("stringi")
当我尝试安装它时,我收到了这条消息:
Installing package into ‘C:/Users/X1/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/stringi_1.1.5.zip'
Content type 'application/zip' length 14289948 bytes (13.6 MB)
downloaded 13.6 MB
package ‘stringi’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘stringi’
The downloaded binary packages are in
C:\Users\X1\AppData\Local\Temp\RtmpO4JAo9\downloaded_packages
之后我做了
library(stringi)
并加载包。
但是当我尝试编织标记时,我得到同样的信息:
... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
有什么想法吗?谢谢。
PS:我正在使用Windows 10.
更新
解决方案:重新安装RStudio。然后我收到了这个错误:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called 'backports'
Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
我在那个帖子中找到了解决这个问题的方法:
backports 1.1.1 package fails to install
require(devtools)
install_version("backports", version = "1.1.0")