0

最近我用下面的命令更新了我的 Knitr 标记,因为 PDF 导出不起作用

devtools::install_github('rstudio/rmarkdown')

现在我无法从 Knitr 创建 PDF、HTML 和 Word 文件,出现此错误

processing file: R.Rmd
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called 'stringi'
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted

现在,当我尝试安装 Stingi 然后出现错误时,这里是我尝试过的选项

install.packages("stringi")
install.packages("stringi", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
install.packages("stringi", repos="http://cran.rstudio.com/", dependencies=TRUE)
install.packages("stringi",type="windows.binary")
install.packages("https://github.com/gagolews/stringi/raw/master/devel/winbuilder/stringi_1.2.3.zip")
install.packages('stringr')

总是收到这个错误

installing the source package ‘stringi’

trying URL 'https://cran.rstudio.com/src/contrib/stringi_1.2.4.tar.gz'
Content type 'application/x-gzip' length 17916239 bytes (17.1 MB)
downloaded 17.1 MB

* installing *source* package 'stringi' ...
** package 'stringi' successfully unpacked and MD5 sums checked
Warning: running command 'sh ./configure.win' had status 127
ERROR: configuration failed for package 'stringi'
* removing 'D:/Program/R/R-3.4.3/library/stringi'
In R CMD INSTALL
Warning in install.packages :
  running command '"D:/Program/R/R-34~1.3/bin/x64/R" CMD INSTALL -l "D:\Program\R\R-3.4.3\library" C:\Users\User~1\AppData\Local\Temp\RtmpGOBUsO/downloaded_packages/stringi_1.2.4.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘stringi’ had non-zero exit status

有人可以帮忙吗

4

0 回答 0