# NOT RUN {
# a default version of the defineModule is created with a call to newModule
newModule("test", path = tempdir())
# file.edit(file.path(tempdir(), "test", "test.R"))
# The default defineModule created by newModule is currently (SpaDES version 1.2.0.9010):
defineModule(sim, list(
name = "test",
description = "insert module description here",
keywords = c("insert key words here"),
authors = c(person(c("First", "Middle"), "Last",
email="email@example.com", role=c("aut", "cre"))),
childModules = character(0),
version = numeric_version("1.2.0.9010"),spatialExtent =
raster::extent(rep(NA_real_, 4)),
timeframe = as.POSIXlt(c(NA, NA)),
timeunit = NA_character_, # e.g., "year",
citation = list("citation.bib"),
documentation = list("README.txt", "test.Rmd"),
reqdPkgs = list(),
parameters = rbind(
#defineParameter("paramName", "paramClass", value, min, max,
"parameter description")),
defineParameter(".plotInitialTime", "numeric", NA, NA, NA,
"This describes the simulation time at which the first plot event should occur"),
defineParameter(".plotInterval", "numeric", NA, NA, NA,
"This describes the simulation time at which the first plot event should occur"),
defineParameter(".saveInitialTime", "numeric", NA, NA, NA,
"This describes the simulation time at which the first save event should occur"),
defineParameter(".saveInterval", "numeric", NA, NA, NA,
"This describes the simulation time at which the first save event should occur")
),
inputObjects = data.frame(
objectName = NA_character_,
objectClass = NA_character_,
sourceURL = "",
other = NA_character_,
stringsAsFactors = FALSE
),
outputObjects = data.frame(
objectName = NA_character_,
objectClass = NA_character_,
other = NA_character_,
stringsAsFactors = FALSE
)
))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab