我正在尝试安装likert,这需要stringi。
install.package("likert")无法安装stringi。
来自CRAN的install.package("stringi")也失败了:
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.2/stringi_1.7.6.tgz'
Content type 'application/x-gzip' length 14390020 bytes (13.7 MB)
==================================
downloaded 9.3 MB
Warning in install.packages :
downloaded length 9800943 != reported length 14390020
Warning in install.packages :
URL 'https://cran.rstudio.com/bin/macosx/contrib/4.2/stringi_1.7.6.tgz': Timeout of 60 seconds was reached
Error in download.file(url, destfile, method, mode = "wb", ...) :
download from 'https://cran.rstudio.com/bin/macosx/contrib/4.2/stringi_1.7.6.tgz' failed
Warning in install.packages :
download of package ‘stringi’ failed我从https://cran.r-project.org/web/packages/stringi/index.html下载了这个软件包,并尝试安装:install.packages("~/Desktop/downloads/stringi_1.7.6.tgz", repos = NULL, type = .Platform$pkgType)
但这也失败了:
Error: package or namespace load failed for ‘stringi’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/stringi/libs/stringi.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/stringi/libs/stringi.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.2/Resources/library/stringi/libs/stringi.so
Reason: image not found怎么一回事?我有最新版本的R和R工作室的Mac。
发布于 2022-06-07 14:10:24
我想通了。问题是超时。装载时间太长了。我通过将超时时间从60秒更改为一个更大的数字来修正它:
getOption('timeout')
[1] 60
options(timeout=300)https://stackoverflow.com/questions/72529902
复制相似问题