[R-sig-Geo] get() in raster ?

Agustin Lobo alobolistas at gmail.com
Fri Nov 19 20:24:12 CET 2010


Hi again!

I'm having problems because cannot use get()  from base once package
raster has been installed:

> v = c("r1","r2","r3")
> v
[1] "r1" "r2" "r3"
> get(v)
Loading required package: raster
Loading required package: sp
raster version 1.6-22 (17-November-2010)
class       : RasterLayer
nrow        : 18
ncol        : 36
ncell       : 648
projection  : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0
xmin        : -180
xmax        : 180
ymin        : -90
ymax        : 90
xres        : 10
yres        : 10

Even not having loaded raster, it gets automatically loaded once I
call get(). Is this a bug?
In general, is there a way to force that, in case of conflict, you run
a particular function from a given package?

Thanks!

Agus



More information about the R-sig-Geo mailing list