[R-sig-Geo] Error: 'rawTransform' is not an exported object from 'namespace:rgdal' in the projectRaster

Tomislav Hengl hengl at spatial-analyst.net
Sun Mar 22 21:46:07 CET 2015


Hi Robert,

I think something happened in the raster package v2.3-33 and your 
function projectRaster reports now an error (which probably affects 
several other packages).

 > # create a new (not projected) RasterLayer with cellnumbers as values
 > r <- raster(xmn=-110, xmx=-90, ymn=40, ymx=60, ncols=40, nrows=40)
 > r <- setValues(r, 1:ncell(r))
 > projection(r)
[1] "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0"
 > # proj.4 projection description
 > newproj <- "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +ellps=WGS84"
 >
 > pr1 <- projectRaster(r, crs=newproj)
Error: 'rawTransform' is not an exported object from 'namespace:rgdal'

Thank you!

T. Hengl



More information about the R-sig-Geo mailing list