[R-sig-Geo] Problems with loading the "mgcv" package

Tomislav Hengl T.Hengl at uva.nl
Thu Jun 11 10:13:45 CEST 2009


Hi guys,

Thanks for your reply (and apologies for a delay - it was night time in Europe).

I am running Windows XP, R version 2.9.0. I have just reinstalled spatstat with dependencies:

> install.packages("spatstat", dependencies=TRUE)

Then I tried:

> library(spatstat)

and I get the same error:

>Loading required package: mgcv
>Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3) :
...

then I tried to re-install the mgcv package but this gives me an error:

>Warning: cannot remove prior installation of package 'mgcv'
*this is version 1.5-5

When I look under my \library\mgcv\

I can still see a dll file which can not be removed.

Maybe there is a problem that I am using a customized Rprofile? My Rprofile is available at:

http://spatial-analyst.net/scripts/Rprofile.site


Thanx!

Tom Hengl
http://home.medewerker.uva.nl/t.hengl/



> -----Original Message-----
> From: Dylan Beaudette [mailto:debeaudette at ucdavis.edu]
> Sent: Wednesday, June 10, 2009 7:40 PM
> To: r-sig-geo at stat.math.ethz.ch
> Cc: Hengl, T.
> Subject: Re: [R-sig-Geo] Problems with loading the "mgcv" package
> 
> works for me:
> 
> library(spatstat)
> sessionInfo()
> 
> Loading required package: mgcv
> This is mgcv  1.5-5 . For overview type `help("mgcv-package")'.
> Loading required package: gpclib
> General Polygon Clipper Library for R (version 1.4-4)
>         Type 'class ? gpc.poly' for help
> 
> Loading required package: deldir
> deldir 0.0-8
> 
> spatstat 1.15-3
> 
> 
> R version 2.9.0 (2009-04-17)
> i686-pc-linux-gnu
> 
> locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-
> 8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=e
> n_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
> 
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
> 
> other attached packages:
> [1] spatstat_1.15-3 deldir_0.0-8    gpclib_1.4-4    mgcv_1.5-5
> 
> loaded via a namespace (and not attached):
> [1] grid_2.9.0      lattice_0.17-25 nlme_3.1-92
> 
> On Wednesday 10 June 2009, Marcelino de la Cruz wrote:
> > Hi Tom,
> >
> > I can load sptastat and mgcv without problem (see below).
> >
> > Could you please send us information about your environment?
> >
> >
> > Cheers,
> >
> > Marcelino
> >
> >  > library(spatstat)
> >
> > Loading required package: mgcv
> > This is mgcv  1.5-5 . For overview type `help("mgcv-package")'.
> > Loading required package: gpclib
> > General Polygon Clipper Library for R (version 1.4-3)
> >          Type 'class ? gpc.poly' for help
> > Loading required package: deldir
> > deldir 0.0-8
> >
> > spatstat 1.15-3
> > Type 'help(spatstat)' for information
> >
> >  > sessionInfo()
> >
> > R version 2.9.0 (2009-04-17)
> > i386-pc-mingw32
> >
> > locale:
> > LC_COLLATE=Spanish_Spain.1252;LC_CTYPE=Spanish_Spain.1252;LC_MONETARY=Spani
> >sh_Spain.1252;LC_NUMERIC=C;LC_TIME=Spanish_Spain.1252
> >
> > attached base packages:
> > [1] stats     graphics  grDevices utils     datasets  methods   base
> >
> > other attached packages:
> > [1] spatstat_1.15-3 deldir_0.0-8    gpclib_1.4-3    mgcv_1.5-5
> >
> > loaded via a namespace (and not attached):
> > [1] grid_2.9.0      lattice_0.17-22 nlme_3.1-90     tools_2.9.0
> >
> > At 16:40 10/06/2009, Hengl, T. wrote:
> > >Hi,
> > >
> > >I am having problems with loading the mgcv package, which is used by
> > >the spatstat package. I did not have similar problems with the
> > >latest version of the spatstat, so I imagine that the problem could
> > >lay with the mgcv package (new parameters).
> > >
> > > > library(spatstat)
> > >
> > >Loading required package: mgcv
> > >Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3) :
> > >   incorrect values of 'indent' and 'width'
> > >Error : .onAttach failed in 'attachNamespace'
> > >Error: package 'mgcv' could not be loaded
> > >
> > >How could we fix this?
> > >
> > >
> > >thanks,
> > >
> > >T. Hengl
> > >http://home.medewerker.uva.nl/t.hengl/
> > >
> > >         [[alternative HTML version deleted]]
> > >
> > >_______________________________________________
> > >R-sig-Geo mailing list
> > >R-sig-Geo at stat.math.ethz.ch
> > >https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >
> > ***************************************
> > Marcelino de la Cruz Rot
> > Depto. Biologia Vegetal
> > EUIT Agricola
> > Universidad Politecnica de Madrid
> > 28040-Madrid
> > SPAIN
> > ***************************************
> > 	[[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo at stat.math.ethz.ch
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 
> 
> 
> --
> Dylan Beaudette
> Soil Resource Laboratory
> http://casoilresource.lawr.ucdavis.edu/
> University of California at Davis
> 530.754.7341



More information about the R-sig-Geo mailing list