library(knitr) code <- c("model_functions.R", "method_functions.R", "eval_functions.R", "main.R") code_lastmodified <- max(file.info(code)$mtime) sapply(code, read_chunk)
This is a knitr
report generated by the simulator
to describe your simulation.
Knitting this file will rerun the simulation if any of the code files have been
modified since the simulation
object was last created.
library(simulator)
<<models>> <<methods>> <<metrics>>
<<init>> <<main>>
<<init>> sim_lastmodified <- file.info(sprintf("files/sim-%s.Rdata", name_of_simulation))$mtime if (is.na(sim_lastmodified) || code_lastmodified > sim_lastmodified) { <<main>> } else{ sim <- load_simulation(name_of_simulation) }
We can make plots.
<<plots>>
And tables too.
<<tables>>
<<models>>
<<methods>>
<<metrics>>
To cite the simulator
, please use
citation("simulator")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.