Hi Edzer, I am sorry about that. I have been using exclusively Tinn-R to write R scripts now over a year (once you install Tinn-R over R, you do need to set-up the Rprofile; Tinn-R works only with the MDI mode of Rgui).
I have just installed a somewhat older version of R (2.7) and tried loading the package "spatstat" in a "clean session" and it does load without a problem. I assume that the problem might be with my Rprofile and/or the Tinn-R integration. Tinn-R does need to load some packages: > library(TinnR) > library(svSocket) which might conflict with "mgcv". I did not have problems with Tinn-R with the latest version of R/Tinn-R, so it is a new thing. I will try to contact also the Tinn-R people (http://www.sciviews.org/Tinn-R/). thanks, Tom Hengl http://home.medewerker.uva.nl/t.hengl/ > -----Original Message----- > From: Edzer Pebesma [mailto:edzer.pebe...@uni-muenster.de] > Sent: Thursday, June 11, 2009 11:02 AM > To: Tomislav Hengl > Cc: r-sig-geo@stat.math.ethz.ch > Subject: Re: [R-sig-Geo] Problems with loading the "mgcv" package > > In general, before you post questions of this kind to the list, it makes > sense to see if the packages load on your platform in a clean session, > e.g. started with R --vanilla. (Or, anyhow, without automatically > loading a data base or Rprofile type modified local configurations). > Then you know where to search! > -- > Edzer > > Tomislav Hengl wrote: > > 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:debeaude...@ucdavis.edu] > >> Sent: Wednesday, June 10, 2009 7:40 PM > >> To: r-sig-geo@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@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@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 > >> > > > > _______________________________________________ > > R-sig-Geo mailing list > > R-sig-Geo@stat.math.ethz.ch > > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > > > > -- > Edzer Pebesma > Institute for Geoinformatics (ifgi), University of Münster > Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251 > 8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de/ > http://www.springer.com/978-0-387-78170-9 e.pebe...@wwu.de _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo