# NOT RUN {
## a default version of the defineModule is created with a call to newModule
newModule("test", path = tempdir())
## view the resulting module file
if (interactive()) file.edit(file.path(tempdir(), "test", "test.R"))
# The default defineModule created by newModule is currently (SpaDES version 1.3.1.9044):
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 = list(SpaDES = "1.3.1.9044", test = "0.0.1"),
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 = bind_rows(
expectsInput(objectName = NA_character_, objectClass = NA_character_,
sourceURL = NA_character_, desc = NA_character_, other = NA_character_)
),
outputObjects = bind_rows(
createsOutput(objectName = NA_character_, objectClass = NA_character_,
desc = NA_character_, other = NA_character_)
)
))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab