Uwe Dippel <udippel <at> uniten.edu.my> writes:
> > I had downloaded and installed a number of packages, successfully, when > I ran into some problem with maptools: It would eat up CPU and most of > all memory. > I rebooted, and tried again, only running the terminal after the reboot; > with the same result: > > " sp2WB text html latex example > sp2tmap text html latex example > spCbind-methods text html latex example > Out of memory! > ERROR: building help failed for package ‘maptools’ > * Removing ‘/usr/local/lib/R/site-library/maptools’ > > The downloaded packages are in > ‘/tmp/RtmpG9Vj1D/downloaded_packages’ > Warning message: > In install.packages("maptools") : > installation of package 'maptools' had non-zero exit status" > > I did install it then, using > sudo apt-get install r-cran-maptools > without problem; it also works. > > (I am on Ubuntu Karmic; sp and Hmisc, however, install without any problem.) > > My RAM is 4GB, my swap likewise. > > Uwe > > Uwe > > I just run into this problem. The issue is with the help file for spRbind particularly the code in the \note{...} I just took out the \enumerate and \item commands so typeset the note without the "original formating" and it will install fine. I do not know much of .Rd files but I know latex and I do not see why latex would have issue with the original code. If you want to get maptools working download it to your current directory download.packages("maptools", ".") go to your surrent directory and untar the file tar xzf maptools... cd maptools/man and replace the code of the note with \note{ In addition to the \code{spRbind}-methods, there are also \code{rbind}-methods for Spatial* objects. The differences are: \code{spRbind}-methods can bind 2 objects, whereas \code{rbind}-methods can bind multiple object some \code{rbind} can accept objects with duplicated IDs, for all \code{spRbind}-methods these have to be modified explicitly, e.g. by calling \code{\link[sp]{spChFIDs-methods}} } save the file and go back to your directory where you saved maptools (cd ../../) and issue a R CMD INSTALL maptools This should install it without problems and you will not lose any information from the help files, Hope this helps ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.