无法在R中安装GSIF包

aiazj4mn  于 2023-05-20  发布在  其他
关注(0)|答案(1)|浏览(501)

我正在尝试通过以下代码安装GSIF包:

install.packages("GSIF", repos=c("http://R-Forge.R-project.org"), type="source", dependencies=TRUE)

出现以下错误消息

Warning in install.packages :
  dependencies ‘soiltexture’, ‘quantregForest’, ‘AICcmodavg’, ‘SDMTools’, ‘maxlike’ are not available
trying URL 'http://R-Forge.R-project.org/src/contrib/GSIF_0.5-5.tar.gz'
Content type 'application/x-gzip' length 1815922 bytes (1.7 MB)
==================================================
downloaded 1.7 MB

* installing *source* package ‘GSIF’ ...
** using staged installation
** R
** data
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in setMethod("describe", signature(x = "WPS"), function(x, request = "describeprocess",  : 
  no existing definition for function ‘describe’
Error: unable to load R code in package ‘GSIF’
Execution halted
ERROR: lazy loading failed for package ‘GSIF’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/GSIF’
Warning in install.packages :
  installation of package ‘GSIF’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/4c/ftr4g6ds49107z8jy593rwbc0000gn/T/Rtmpq5RWmw/downloaded_packages’

我在macOS Big Sur 11.6上运行R 4.1.2 Bird Hippie
有什么建议吗
先谢谢你,简

kmb7vmvb

kmb7vmvb1#

1.首先,通过运行install.packages(“devtools”)安装devtools R包1.从[https://cran.microsoft.com/snapshot/2020-04-20/src/contrib/GSIF_0.5-5.1.tar.gz](https://cran.microsoft.com/snapshot/2020-04-20/src/contrib/GSIF_0.5-5.1.tar.gz)下载GSIF包的源代码 1.然后安装GSIF包,如下所示:devtools::install_local("~/Downloads/GSIF_0.5-5.1.tar.gz")注意:请确保根据您的系统提供正确的压缩GSIF包文件路径。如果你得到像ERROR: dependencies ‘RSAGA’, ‘dismo’, ‘rgdal’, ‘raster’, ‘plotKML’ are not available for package ‘GSIF’`这样的错误,然后下载(从CRAN)并从源代码安装这些软件包,如上面的步骤2和3所述。

相关问题