Dear List

I have encountered a problem with the ‘extract’ function in Raster package, previously it worked for me but not anymore. Here is an example from the Raster package documentation. It does not work on my Mac OS X 10.9.3 running R version 3.0.2 (2013-09-25) -- "Frisbee Sailing” (64 bit). 

> r <- raster(ncol=36, nrow=18)
> r[] <- 1:ncell(r)
>  
> ###############################
> # extract values by cell number
> ###############################
> extract(r, c(1:2, 10, 100))
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘extract’ for signature ‘"RasterLayer"’
> s <- stack(r, sqrt(r), r/r)
> extract(s, c(1, 10, 100), layer=2, n=2)
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘extract’ for signature ‘"RasterStack"’

Is this perhaps due to an upgrade of my Mac software? Or could OS X Mavericks be causing the issue?

As always, any advice/recommendations would be greatly appreciated.

Thanks and Regards
Justin Michell
	[[alternative HTML version deleted]]

