'package'ncdf'是在R 3.0.0之前构建的:请重新安装它'

时间:2016-07-20 18:56:23

标签: r install packages

我想在R版本3.3.0中运行库(ncdf)。我收到以下错误消息:失败并显示错误:'package'ncdf'是在R 3.0.0之前构建的:请重新安装它'

我试着用foll。建议的方式:

url <- "https://cran.r-project.org/src/contrib/Archive/ncdf/ncdf_1.6.9.tar.gz"
pkgFile <- "ncdf_1.6.9.tar.gz"
download.file(url = url, destfile = pkgFile)
install.packages(c("ada", "ipred", "evd"))
install.packages(pkgs=pkgFile, type="source", repos=NULL)

sessionInfo()

R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 10586)

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base 

我仍然收到一些错误:

Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-33~1.0/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.0/share/make/winshlib.mk" SHLIB="ncdf.dll" WIN=64 TCLBIN=64 OBJECTS="ncdf.o ncdf2.o ncdf3.o"' had status 127
ERROR: compilation failed for package 'ncdf'
* removing 'C:/Users/gangulip/Documents/R/win-library/3.3/ncdf'
* restoring previous 'C:/Users/gangulip/Documents/R/win-library/3.3/ncdf'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\gangulip\Documents\R\win-library\3.3" "ncdf_1.6.9.tar.gz"' had status 1 
2: In install.packages(pkgs = pkgFile, type = "source", repos = NULL,  :
  installation of package ‘ncdf_1.6.9.tar.gz’ had non-zero exit status

0 个答案:

没有答案