v1.0.8
Known issues: https://github.com/PredictiveEcology/SpaDES.core/issues
version 1.0.8
new features
Plots
function can be used likePlot
, but withtypes
specified.
The devices to save on disk will have some different behaviours to the screen representation, since "wiping" an individual plot on a device doesn't exist for a file device.
version 1.0.7
new features
Plots
function that will produce zero to 4 types of items that are relevant for plotting: 1) Visual on screen, 2) The plot object saved to disk, 3) The raw data that went into the plot and 4) The plot as one or more image files, e.g.,.png
or.pdf
viaggsave
spades
now accepts anevents
argument, which will limit the events that are run to those specified in the argument. This seems to be most useful for theinit
case, e.g.,spades(sim, events = "init")
. See?spades
.- messaging during
simInit
now is prefixed withSys.time()
and"simInit
" - messaging during
spades
is simplified to take up fewer characters:INFO::
has been removed simInit
now checks for minimum version ofSpaDES.core
needed in a module and stops if it fails, giving instructions how to upgrade.- several human-readable only elements of a module metadata are no longer enforced, including
spatialExtent
, as they are not used by the spades algorithms - new function:
anyPlotting
to test whether plotting of one form or another should occur - line-by-line messaging during
spades
call is now more informative, including module name (by default shortened -- can be changed withoptions("spades.messagingNumCharsModule"))
) defineParameter
can now accept a vector of "class", so a parameter can be more than one class.
Presumably this should generally not be used, but a good reason could be, say,c("numeric", "function")
, where the use can pass either a numeric or a function that would calculate that numeric.- new helper function
simFile
to generate file names for use with e.g.,saveSimList
zipSimList
is now exportedspades
will now attempt to loadreqdPkgs
, which is already done insimInit
.
In cases wheresimInit
was not run, e.g.,Cache(simInitAndSpades, ..., events = "init")
, then modules will not have access to packages.
For cases wheresimInit
was called, then this should add very little overhead.saveSimList
will now convert file-backedRaster*
class objects to memory iffileBackend = 0
.
Previously, it left them as is (on disk if on disk, in memory if in memory).- For code/documentation contributors, markdown syntax is now turned on and can be used when writing function documentation
- The first event will now run if it is scheduled to be prior to
time(sim)
in the case where it is equal to or afterend(sim)
. Previously, this would not run any events iftime(sim)
>=end(sim)
&&events(sim)[[1]] < time(sim)
. - minor documentation modifications
- Add optional
.seed
parameter for modules (#163)
Bugfixes
defineParameter
was throwingis.na(default)
warning when a parameter was not an atomic.- recovery mode did not work correctly if the file-backed rasters were in the temporary directory, as it would collide with the temporary directory of the recovery mode mechanism. Now recovery mode uses a dedicated temporary directory
- other minor bugfixes,