There is a newer version of the record available.

Published July 10, 2018 | Version v0.2.0
Software Open

PredictiveEcology/SpaDES.core: v0.2.0

  • 1. Canadian Forest Service, Government of Canada
  • 2. H2O.ai

Description

Known issues: https://github.com/PredictiveEcology/SpaDES.core/issues

version 0.2.0 new features
  • module metadata now in named lists inside depends(sim)
  • new debugging -- if debug is not FALSE, then any error will trigger a browser() call inside the event function. User can continue (c) or quit (Q) as per normal. c will trigger a reparse and events will continue as scheduled.
  • introduction of code checking for modules, currently turned on or off by an option spades.moduleCodeChecks, which is TRUE by default. Code checking includes various types:

    • use codetools to check for various code problems
    • detects conflicts with known common functions (raster::level, raster::scale, quickPlot::Plot)
    • use checkCodeEnv on every function inside a module
    • checking for sim$xxx occurrences in modules, comparing to outputObjects in metadata if used in assignment (i.e., left hand side of assign operator), or comparing to inputObjects if used on the right hand side
    • check that all objects declared in inputObjects have default values assigned in the .inputObjects function
    • messages colour coded, and separated by file with absolute path explicit
  • option spades.debug set to TRUE by default, instead of FALSE. This is better for new users.

  • moduleMetadata argument order changed, so sim is first, more consistent with all other simList accessors.
  • downloadData has changed dramatically, now it is a wrapper around reproducible::prepInputs which does more checking.
  • extractURL will extract the sourceURL from metadata, given an object name.
  • makeMemoiseable and unmakeMemoisable, new methods, each the inverse of the other, to deal with imperfect memoised returns under some cases of simList.
  • new option, spades.keepCompleted, TRUE by default, which can be useful for dramatically speeding up the DES when there are many (>10,000) events.
deprecated, defunct, and removed features
  • remove fileExt -- use tools::file_ext instead
bug fixes
  • fix tests based on data.table changes (@mattdowle, #64).
  • re-export start and end.
  • newModule template modified slightly based on workshop feedback.
  • setPaths now only sets the directories that are passed into it.
  • all.equal.simList method strips a small number of attributes that are used internally that create false failures.
  • speed enhancements.
  • other minor bug fixes.
package dependency changes
  • add package imports tools, pryr.
  • removed package imports rgeos, RCurl and googledrive.

Files

PredictiveEcology/SpaDES.core-v0.2.0.zip

Files (3.7 MB)

Name Size Download all
md5:77f6320710412d9474672cbbff101170
3.7 MB Preview Download

Additional details