我试图通过以下代码安装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 BigSu11.6上运行R4.1.2鸟嬉皮士
有什么建议吗?
谢谢你,简
发布于 2022-08-31 20:58:30
首先,通过运行install.packages("devtools")`
devtools
R包-- https://cran.microsoft.com/snapshot/2020-04-20/src/contrib/GSIF_0.5-5.1.tar.gz
GSIF
包的源代码安装GSIF
包如下:注意:请确保根据您的系统为压缩的GSIF
包文件提供正确的路径。如果您得到类似于ERROR: dependencies ‘RSAGA’, ‘dismo’, ‘rgdal’, ‘raster’, ‘plotKML’ are not available for package ‘GSIF’
的错误,那么下载(从CRAN)并从源代码中安装这些包,如上面的步骤2和步骤3所述。
https://stackoverflow.com/questions/73559636
复制相似问题