Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
checkpoint module needs to work with the simEnv #191
@eliotmcintire I think the last step here is to make sure objects can be replotted once restored from a checkpoint. Can you please take a look?
I think something along the lines of the following should probably work (it doesn't):
library(SpaDES) times <- list(start=0, stop=30) parameters <- list(.globals=list(stackName="landscape"), .checkpoint=list(interval=10, file="chkpnt.RData")) modules <- list("randomLandscapes", "caribouMovement") path <- system.file("sampleModules", package="SpaDES") mySim <- simInit(times=times, params=parameters, modules=modules, path=path) mySim <- spades(mySim) clearPlot() simStopTime(mySim) <- 50 mySim <- spades(mySim) rePlot()