View source: R/codecheck-api.R
| codeCheckModule | R Documentation |
Walks the module's source via xmlparsedata, collects every reference to
sim$x / sim[["x"]] / get("x", envir = envir(sim)) and to parameters
(Par$x, P(sim)$x, params(sim)$mod$x), then compares those uses to
the module's defineModule() metadata. Reports any mismatches as a
structured tibble of findings, optionally printed as grouped tables.
codeCheckModule(path, print = TRUE, enable = NULL, disable = NULL)
path |
Path to a module directory (containing |
print |
Logical; print the grouped report. Default |
enable, disable |
Optional character vectors of rule IDs to restrict
the run. See |
This is the v2 implementation, selectable at simInit() time via
options(spades.codeCheckEngine = "v2") (the default). The legacy v1
checker is still available via options(spades.codeCheckEngine = "v1").
A data.frame of findings (one row per problem). Returned
invisibly. Empty if the module is clean.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.