[R-sig-Geo] Error in trim(as.character(x)) in raster::projectRaster
Tomislav Hengl
hengl at spatial-analyst.net
Tue Dec 15 18:57:35 CET 2015
I am getting some problems with using the raster::projectRaster
function (trim function within that function). The example from
package does not run any more:
pr1 <- projectRaster(r, crs=newproj)
Loading required package: rgdal
rgdal: version: 1.1-1, (SVN revision 572)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.11.2, released 2015/02/10
Path to GDAL shared files: C:/Program Files/R/R-devel/library/rgdal/gdal
GDAL does not use iconv for recoding strings.
Loaded PROJ.4 runtime: Rel. 4.9.1, 04 March 2015, [PJ_VERSION: 491]
Path to PROJ.4 shared files: C:/Program Files/R/R-devel/library/rgdal/proj
Linking to sp version: 1.2-1
Error in trim(as.character(x)) :
error in evaluating the argument 'x' in selecting a method for
function 'trim': Error in as.vector(ln) : argument "mode" is missing,
with no default
My session info:
R Under development (unstable) (2015-12-14 r69775)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Dutch_Netherlands.1252 LC_CTYPE=Dutch_Netherlands.1252
LC_MONETARY=Dutch_Netherlands.1252
[4] LC_NUMERIC=C LC_TIME=Dutch_Netherlands.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rgdal_1.1-1 raster_2.4-30 sp_1.2-1
loaded via a namespace (and not attached):
[1] tools_3.3.0 Rcpp_0.12.2 grid_3.3.0 lattice_0.20-33
More information about the R-sig-Geo
mailing list