Skip to content

R crashed when running calc

6 messages · Eddie Smith, Robert J. Hijmans, Jonathan Greenberg

#
Eddie,
The function does not work (maxsst is not defined). You are not
providing sessionInfo()
You should be able to avoid memory problems (if that is what causes
this) via rasterOptions(chunksize=___)

E.g.,

rasterOptions(chunksize=1e+05)

Robert
On Mon, Feb 17, 2014 at 11:19 AM, Eddie Smith <eddieatr at gmail.com> wrote:
#
Eddie:

This is the Windows x64 version of R 3.0.2, right?  I found that the
x64 release for whatever reason R needs to be launched with the
--max-mem-size=XXXM flag if you want more than 2gb available to R.

XXX is the number of megabytes to give it access to.  This seemed to
have been a change from 3.0.1 (which seemed to set the memory to be
the max available on the system).  Give this a shot when you launch
it.  Check http://stackoverflow.com/questions/1395229/increasing-the-memory-available-to-r-processes
for some hints on this (you can append the setting to your GUI
shortcut).

You should also follow Robert's suggestion and set the chunkSize to be
VERY small if the max-mem-size doesn't work.

--j
On Tue, Feb 18, 2014 at 7:08 AM, Eddie Smith <eddieatr at gmail.com> wrote: