简体   繁体   English

我似乎无法在 R studio for windows 上安装“ecospat”包

[英]I can't seem to install the 'ecospat' package on R studio for windows

I am unable to install the 'ecospat' package on R and I was wondering why this could be?我无法在 R 上安装“ecospat”包,我想知道为什么会这样?

After running the following bit of code using R in windows.....在 Windows 中使用 R 运行以下代码后......

install.packages('ecospat')

This is the error message I get...这是我收到的错误消息...

Installing package into 'C:/Users/etelford.IC.000/Documents/R/win-library/3.4' (as 'lib' is unspecified) also installing the dependencies 'pROC', 'biomod2'将软件包安装到“C:/Users/etelford.IC.000/Documents/R/win-library/3.4”(因为“lib”未指定)同时安装依赖项“pROC”、“biomod2”

There are binary versions available but the source versions are later: binary source needs_compilation pROC 1.14.0 1.16.2 TRUE biomod2 3.3-7.1 3.4.6 FALSE ecospat 3.0 3.1 FALSE有可用的二进制版本,但源版本较晚: binary source needs_compilation pROC 1.14.0 1.16.2 TRUE biomod2 3.3-7.1 3.4.6 FALSE ecospat 3.0 3.1 FALSE

Binaries will be installed trying URL ' https://cran.rstudio.com/bin/windows/contrib/3.4/pROC_1.14.0.zip ' Content type 'application/zip' length 941305 bytes (919 KB) downloaded 919 KB将安装二进制文件,尝试 URL ' https://cran.rstudio.com/bin/windows/contrib/3.4/pROC_1.14.0.zip ' 内容类型 'application/zip' 长度 941305 字节 (919 KB) 下载 919 KB

package 'pROC' successfully unpacked and MD5 sums checked包 'pROC' 成功解包并检查 MD5 总和

The downloaded binary packages are in C:\\Users\\etelford.IC.000\\AppData\\Local\\Temp\\RtmpsBJC01\\downloaded_packages installing the source packages 'biomod2', 'ecospat'下载的二进制包在 C:\\Users\\etelford.IC.000\\AppData\\Local\\Temp\\RtmpsBJC01\\downloaded_pa​​ckages 安装源包 'biomod2', 'ecospat'

trying URL ' https://cran.rstudio.com/src/contrib/biomod2_3.4.6.tar.gz ' Content type 'application/x-gzip' length 665227 bytes (649 KB) downloaded 649 KB尝试 URL ' https://cran.rstudio.com/src/contrib/biomod2_3.4.6.tar.gz ' 内容类型 'application/x-gzip' 长度 665227 字节 (649 KB) 下载 649 KB

trying URL ' https://cran.rstudio.com/src/contrib/ecospat_3.1.tar.gz ' Content type 'application/x-gzip' length 2179055 bytes (2.1 MB) downloaded 2.1 MB尝试 URL ' https://cran.rstudio.com/src/contrib/ecospat_3.1.tar.gz ' 内容类型 'application/x-gzip' 长度 2179055 字节 (2.1 MB) 下载 2.1 MB

  • installing source package 'biomod2' ... ** package 'biomod2' successfully unpacked and MD5 sums checked ** R ** inst ** preparing package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace 'pROC' 1.14.0 is being loaded, but >= 1.15.0 is required ERROR: lazy loading failed for package 'biomod2'安装包 'biomod2' ... ** 包 'biomod2' 成功解包并检查 MD5 总和 ** R ** inst ** 准备延迟加载包 loadNamespace(i, c(lib.loc, .libPaths()) ), versionCheck = vI[[i]]) :正在加载命名空间“pROC”1.14.0,但需要 >=1.15.0 错误:包“biomod2”的延迟加载失败
  • removing 'C:/Users/etelford.IC.000/Documents/R/win-library/3.4/biomod2' In R CMD INSTALL Warning in install.packages : running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\\Users\\etelford.IC.000\\Documents\\R\\win-library\\3.4" C:\\Users\\ETELFO~1.000\\AppData\\Local\\Temp\\RtmpsBJC01/downloaded_packages/biomod2_3.4.6.tar.gz' had status 1 Warning in install.packages : installation of package 'biomod2' had non-zero exit status ERROR: dependency 'biomod2' is not available for package 'ecospat'删除 'C:/Users/etelford.IC.000/Documents/R/win-library/3.4/biomod2' 在 R CMD INSTALL 中 install.packages 警告:运行命令 '"C:/PROGRA~1/R/R- 34~1.4/bin/x64/R" CMD INSTALL -l "C:\\Users\\etelford.IC.000\\Documents\\R\\win-library\\3.4" C:\\Users\\ETELFO~1.000\\AppData\\Local\\Temp \\RtmpsBJC01/downloaded_pa​​ckages/biomod2_3.4.6.tar.gz' 在 install.packages 中有状态 1 警告:安装包 'biomod2' 的退出状态非零错误:依赖 'biomod2' 不适用于包 'ecospat'
  • removing 'C:/Users/etelford.IC.000/Documents/R/win-library/3.4/ecospat' In R CMD INSTALL Warning in install.packages : running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\\Users\\etelford.IC.000\\Documents\\R\\win-library\\3.4" C:\\Users\\ETELFO~1.000\\AppData\\Local\\Temp\\RtmpsBJC01/downloaded_packages/ecospat_3.1.tar.gz' had status 1 Warning in install.packages : installation of package 'ecospat' had non-zero exit status删除 'C:/Users/etelford.IC.000/Documents/R/win-library/3.4/ecospat' 在 R CMD INSTALL 中 install.packages 警告:运行命令 '"C:/PROGRA~1/R/R- 34~1.4/bin/x64/R" CMD INSTALL -l "C:\\Users\\etelford.IC.000\\Documents\\R\\win-library\\3.4" C:\\Users\\ETELFO~1.000\\AppData\\Local\\Temp \\RtmpsBJC01/downloaded_pa​​ckages/ecospat_3.1.tar.gz' 在 install.packages 中有状态 1 警告:安装包 'ecospat' 有非零退出状态

Any help would be greatly appreciated,任何帮助将不胜感激,

thanks谢谢

First of all you need to update your R version.首先,您需要更新 R 版本。 I think you use an R 3.4 version.我认为您使用的是 R 3.4 版本。 The main reason why your installation fails is that you need to install pROC > 1.15 and this is not available for R 3.4.您安装失败的主要原因是您需要安装pROC > 1.15而这不适用于 R 3.4。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM