knitr::opts_chunk$set(echo = TRUE)

{{{module}}} module documentation

This module provides the following functionalities...

Release notes

Version 0.1

This is the first version of this module.

Requirements

This module requires the following packages ... and external dependecies such as ...

Events

Event name 1

Description

This event does...

Some technical details of the inner working, assumptions, and settings of the event function that shouldn't bother the user at their first glance.

Usage

event_{{{module}}}_eventname1 <- modules::use(here::here("{{{module_path}}}/eventname.R"))
event_{{{module}}}_eventname1

Params

# For example
model <- list(x1 = list(yes = 0.5, no = 0.5),
              x2 = data.table(sex = c("male", "female"), prob = c(0.2, 0.1)))

Example

event_{{{module}}}_eventname1 <- modules::use(here::here("{{{module_path}}}/eventname.R"))

create_toy_world() 

world %>%
  event_{{{module}}}_eventname1$run(world = ., model = model)

Event name 2

Description

This event does...

Some technical details of the inner working, assumptions, and settings of the event function that shouldn't bother the user at their first glance.

Usage

event_{{{module}}}_eventname2 <- modules::use(here::here("{{{module_path}}}/eventname.R"))
event_{{{module}}}_eventname2

Params

# For example
model <- list(x1 = list(yes = 0.5, no = 0.5),
              x2 = data.table(sex = c("male", "female"), prob = c(0.2, 0.1)))

Example

event_{{{module}}}_eventname2 <- modules::use(here::here("{{{module_path}}}/eventname.R"))

create_toy_world() 

world %>%
  event_{{{module}}}_eventname2$run(world = ., model = model)

Known issues

Here are some known issues



dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.