Skip to content

difficulty loading package "sp"

3 messages · Michael Marsh, Roger Bivand, Rolf Turner

#
On Sat, 20 Nov 2010, Mike Marsh wrote:

            
No, this is not how you install binary contributed packages on Windows. 
You use the Packages -> menu item, choosing sp from the (long) list that 
appears after you have chosen a CRAN mirror. Alternatively, you can simply 
enter install.packages("sp") at the console prompt, you will be asked for 
a CRAN mirror. Never mess with the R library folders, its contents and 
index are updated within R, and are not for users to meddle with.

You are also running R 2.8.1 (current is 2.12.0), so installing manually 
(had you done it properly by downloading the correct zip archive and using 
the Packages -> Install from local zip file option) would only work for 
the 2.8 binary build of the package:

http://cran.r-project.org/bin/windows/contrib/2.8/sp_0.9-37.zip

but this should be selected automatically if you use the system correctly.

Hope this helps,

Roger

  
    
#
On 21/11/2010, at 4:25 PM, Mike Marsh wrote:

            
You can't have looked very hard.
You need to install the package before you try to load it.
Look at the error message.  There is no object named "sp" in your
	search path.  You would need to to update.packages("sp") were this
	the appropriate thing to do.  Which it isn't.  You haven't yet
	(ever) installed sp, so how can you update it?

	Try doing install.packages("sp").
The current version of R is 2.12.0.

		cheers,

			Rolf Turner