[R-sig-Geo] error when using fit.variogram.gls
Laura Poggio
laura.poggio at gmail.com
Thu Jan 4 15:08:03 CET 2018
Dear all,
I was trying to use the function fit.variogram.gls from gstat package, and
I got the error below:
"Error in gamfn(h0, theta) : could not find function "gamfn""
Below some lines of code that trigger the error:
library(gstat)
library(sp)
data(meuse)
coordinates(meuse) = ~x+y
fit.variogram.gls(log(zinc)~1, meuse[1:40,], vgm(1, "Sph", 900,1))
My sessionInfo():
R version 3.4.2 (2017-09-28)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=en_GB.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] gstat_1.1-5 sp_1.2-5
loaded via a namespace (and not attached):
[1] zoo_1.8-0 compiler_3.4.2 tools_3.4.2 xts_0.10-0
[5] spacetime_1.2-1 grid_3.4.2 FNN_1.1 intervals_0.15.1
[9] lattice_0.20-35
The same is happening also under Fedora 27 (Workstation Edition).
Thank you in advance and best wishes
Laura
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list