To install threemc:
remotes::install_github("mrc-ide/threemc", upgrade = FALSE)
To see how threemc works for a simple example, please see the relevant vignette.
(largely copied from naomi)
goodpractice package). Also documents functions with
devtools::check(). These checks can be run directly from the script
scripts/goodpractice.R or from the command line with make goodpractice
(use make goodpractice_vignette if making changes to vignettes, which are
very slow to build),Additionally:
threemc_aggregate or threemc_ppc (the slowest "purely R"
functions in this package), a before vs after profiling would be useful,
using e.g. profvis,lintr from
goodpractice,devtools::check() when using non-standard evaluation (NSE),
dplyr, refer to all columns with rlang::`.data`, e.g. .data$col,data.table, assign columns referenced in NSE to the value NULL at the
beginning of a function (see threemc_ppc for an example).MIT © Imperial College of Science, Technology and Medicine