This is because of a change in rgdal 0.7-15 that was removed in the next
version.  This version was only active on CRAN for one day (Aug 20).  It
goes away after updating to the current version of rgdal.  (And it has led
to further changes in raster and rgdal to avoid the "fragile" use of .Call
function hosted in other packages to avoid such crashes in the future).

Robert


On Tue, Oct 2, 2012 at 10:25 AM, Gregovich, Dave P (DFG) <
dave.gregovich@alaska.gov> wrote:

> Hello,
> When I attempt to run this simple code example from the projectRaster()
> examples, my new R installation (R 2.15.1, raster package 2.0-08, and rgdal
> 0.7-15) crashes:
>
> r <- raster(xmn=-110, xmx=-90, ymn=40, ymx=60, ncols=40, nrows=40)
> r <- setValues(r, 1:ncell(r))
> projection(r)
> newproj <- "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +ellps=WGS84"
> pr1 <- projectRaster(r, crs=newproj)
>
> I reverted to a previous installation (R 2.13.1, raster package 1.9-70m
> and rgdal 0.7-1) , and it works. The new installation sessionInfo() is
> below, followed by the older installation.
>
> If you have any ideas for rectifying this problem, please let me know.
>
> Thanks for your help, and for the r-sig-geo group!
>
> Dave.
>
> NEW SESSION INFO--
> > sessionInfo()
> R version 2.15.1 (2012-06-22)
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=English_United States.1252
> [2] LC_CTYPE=English_United States.1252
> [3] LC_MONETARY=English_United States.1252
> [4] LC_NUMERIC=C
> [5] LC_TIME=English_United States.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] raster_2.0-08 rgdal_0.7-15  sp_0.9-99
>
> loaded via a namespace (and not attached):
> [1] grid_2.15.1    lattice_0.20-6
>
> OLD SESSION INFO--
> > sessionInfo()
> R version 2.13.1 Patched (2011-07-22 r56481)
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=English_United States.1252
> [2] LC_CTYPE=English_United States.1252
> [3] LC_MONETARY=English_United States.1252
> [4] LC_NUMERIC=C
> [5] LC_TIME=English_United States.1252
>
> attached base packages:
> [1] stats     graphics  grDevices datasets  utils     methods   base
>
> other attached packages:
> [1] raster_1.9-70 rgdal_0.7-1   sp_0.9-84
>
> loaded via a namespace (and not attached):
> [1] grid_2.13.1     lattice_0.19-30 tools_2.13.1
> __________________________________
> Dave Gregovich
> Research Analyst
> Alaska Department of Fish and Game
> Wildlife Conservation Division
> Douglas, AK 99821
> (907) 465-4291
> dave.gregovich@alaska.gov
> __________________________________
>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

