steps-dev / steps

steps: Spatially- and Temporally- Explicit Population Simulator
19 stars 7 forks source link

Error in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : The total size of the 6 globals that need to be exported for the future expression (‘{; ...future.globals.maxSize.org <- getOption("future.globals.maxSize"); if (!identical(...future.globals.maxSize.org, ...future.globals.maxSize)) {; oopts <- options(future.globals.maxSize = ...future.globals.maxSize); on.exit(options(oopts), add = TRUE); }; ...; ...future.FUN(...future.X_jj, ...); }); }’) is 753.76 MiB. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). The three largest globals are ‘future.call.arguments’ (753.67 MiB of class ‘list’), ‘...future.FUN’ (75.41 KiB of class ‘function’) and ‘as_class’ (12.36 KiB of class ‘function’). #19

Closed geryan closed 5 years ago

geryan commented 5 years ago

Appears with longer runs (50 yr not 20 yr) of GG BRT based model over full RFAzone (~1300x1300) but not on CCV's reduced 500x500 habitat area

cvisintin commented 5 years ago

try running this and see if it helps the error:

options(future.globals.maxSize= 1000*1024^2)

if so, we can add it to the package options.

geryan commented 5 years ago

Thumbs up emoji Solves it

cvisintin commented 5 years ago

Added option as default to steps.