简体   繁体   中英

Unable to install GSIF package in R

I am trying to install the GSIF package via the following code:

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

The following error message appears

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’

I run R 4.1.2 Bird Hippie on macOS Big Sur 11.6

Any advice?

Thanks in advance, Jan

  1. first, install devtools R package by running install.packages("devtools")`
  2. download the source code of GSIF package from https://cran.microsoft.com/snapshot/2020-04-20/src/contrib/GSIF_0.5-5.1.tar.gz
  3. then install the GSIF package as follows: devtools::install_local("~/Downloads/GSIF_0.5-5.1.tar.gz")

Note: make sure to give the proper path to the compressed GSIF package file based on your system

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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