[GRASS-user] Re: problems loading R packages
Cgeorges
cgeorges at CSO.Net
Wed Apr 18 04:54:33 EDT 2007
Hi Malte,
since you are a very beginner with R
I give you some detailed comments on the
R commands/output/requirements:
>> > install.packages(c("sp","spgrass6","rgdal","maptools"),
>> dependencies=TRUE)
You need to install these additional packages in R
to be able to
work with spatial data (sp),
import/export grass data (spgrass),
use gdal lib (rgdal),
and provide more possibilites with maps (maptools).
Those packages are to be downloaded from some server,
compiled and installed, which R all executes semi-automatically.
>> argument 'lib' is missing: using /usr/local/lib/R/site-library
This is the directory where the compiled packages are being installed,
thus, you need full rights to this directory.
I usually install packages as root, which enables them for
all users.
>> Loading Tcl/Tk interface ... done
With this output, a tcl-widget presents you available servers
to download the packages. Did the widget come up?
I assume not, which would explain the following error message:
>> dependencies '?sp?, ?spgrass6?, ?rgdal?, ?maptools?' are not available
Summary:
1. install packages as root
2. R needs to be tcl/tk enabled; tcl/tk installed
Alternatively,
you can download the packages manually
(http://cran.r-project.org,
most recent sp packages at: http://r-spatial.sourceforge.net/)
and install packages manually from some shell with:
R CMD INSTALL packagexy.tar.gz
HTH,
Christian
_________________________________________________________________
E-Mail
versendet via WebMail von CSO.Net Austria
More information about the grass-user
mailing list