Skip to content

Install problem with 'sp'

3 messages · Matt Moehr, Thomas Adams, Roger Bivand

#
I have always used the R spatial packages on my home computer.  I wanted 
to use them on my department's server, but of course you can't install 
packages to the local directories.  I thought I could download the 
necessary packages into my directory and use the lib.loc option in 
library().  Everything was going smoothly until I got to the 'sp' package:

 > library(sp, lib.loc="w:/R_Packages")
Error in load(dataFile, ns) : ReadItem: unknown type 241
In addition: Warning message:
package 'sp' was built under R version 2.3.0
Error: unable to load R code in package 'sp'
Error: package/namespace load failed for 'sp'

The R version on the server is 2.2.1 and the 'sp' version is 0.8-14.  
Anyone know any conflicts or problems with the package?  By the way, my 
ultimate goal is just to use the globalG.test() in 'spdep' so I would be 
open to workarounds that didn't require 'sp'.  Thanks for your time.

Matt Moehr

-----------------------------------
Matthew J Moehr
mmoehr at ssc.wisc.edu
Graduate Research Assistant
Applied Population Laboratory
Department of Rural Sociology
University of Wisconsin - Madison
350 Agriculture Hall
1450 Linden Drive
Madison WI 53706
Tel:  608.265.8029
Fax:  608.262.6022
#
Matt,

Sorry, I do not have a very good solution ? I encountered this exact 
problem and with the frustrations I had at the time, I reverted back to 
R 2.2.1. Life is good again? BTW, I'm using Redhat Enterprise 3 Linux.

Tom
Matt Moehr wrote:

  
    
#
WARNING! useR 2006 now up and running, so list response time attenuated!

Please make sure you download the bin/windows/contrib/2.2, not the 2.3 
version. Please report with a few more details - are you using or setting 
.libPath()?

Roger
On Tue, 13 Jun 2006, Matt Moehr wrote: