无法直接或通过源代码安装 quanteda

couldn't install quanteda either directly or via source

我试过直接安装包,它的 github 版本或从源代码安装都无济于事。

这是错误信息:

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
ld: warning: directory not found for option '-    L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see     invocation)
make: *** [quanteda.so] Error 1
ERROR: compilation failed for package 'quanteda'
* removing     '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quanteda'
Warning in install.packages :
  installation of package 'Downloads/quanteda_1.0.0.tar.gz' had non-zero     exit status

直接install.package给出这个错误:

Warning in install.packages :
  cannot open URL 'https://cran.rstudio.com/bin/macosx/el-    capitan/contrib/3.4/quanteda_1.0.0.tgz': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/bin/macosx/el-    capitan/contrib/3.4/quanteda_1.0.0.tgz'
Warning in install.packages :
  download of package 'quanteda' failed
tar: Failed to set default locale

这是我的会话信息

R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.2

谢谢。

我也有这个问题。我使用 install.packages("quanteda") 并更改 CRAN 服务器解决了它。其实我用的是澳洲墨尔本1