GeoMLA icon indicating copy to clipboard operation
GeoMLA copied to clipboard

Unable to install GSIF package in R

Open kleinjl opened this issue 2 years ago • 1 comments

Hi,

I am unable to install the GSIF package to implement the RFsp framework. I have posted the issue on stackoverflow but haven't gotten a response. I have been contacted by other users who also fail to install the GSIF package. It has been taken down from CRAN, hence can we assume that it will no longer be maintained?

The most important function seems to be the buffer.dist() function which I unsuccessfully tried to load manually into the R environment, see here.

I use the following code:

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’`

I run R 4.1.2 Bird Hippie on macOS Big Sur 11.6

Thanks in advance, Jan

kleinjl avatar May 09 '23 14:05 kleinjl

Same problem - I am un Ubuntu 23.04 running R v 4.2.2

@thengl - I was trying to follow the workshop on RF_uncertainty but can't completete because of the GSIF dependency.

It seems it is used only in:

grid.dist0 <- GSIF::buffer.dist(meuse["zinc"], meuse.grid[1], as.factor(1:nrow(meuse)))

I understand the package is now considered obsolete, is there any other alternative or updated method that I can use to replace it?

The install log is:

> install.packages("GSIF", repos=c("http://R-Forge.R-project.org"), type = "source")
Installing package into ‘/home/epinux/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
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 ‘/home/epinux/R/x86_64-pc-linux-gnu-library/4.2/GSIF’

The downloaded source packages are in
	‘/tmp/RtmpFeTKOZ/downloaded_packages’
Warning message:
In install.packages("GSIF", repos = c("http://R-Forge.R-project.org"),  :
  installation of package ‘GSIF’ had non-zero exit status
> 

epifanio avatar Jul 24 '23 09:07 epifanio