Skip to content

Commit

Permalink
chore: synced file(s) with ssi-dk/diseasy
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Jan 20, 2025
1 parent 7c0654c commit 8b7e69f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 5 deletions.
35 changes: 35 additions & 0 deletions R/0_documentation.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,38 @@ rd_activity_weights <- paste(
"(`numeric(4)`)\\cr",
"vector of weights for the four types of contacts. If `NULL`, no weighting is done."
)

rd_diseasy_module <- paste(
"(`boolean` or `R6::R6Class instance`)\\cr",
"If a boolean is given, it dictates whether to load a new instance module of this class.\\cr",
"If an instance of the module is provided instead, a copy of this instance is added to the `DiseasyModel`",
"instance. This copy is a \"clone\" of the instance at the time it is added and any subsequent changes to the",
"instance will not reflect in the copy that is added to `DiseasyModel`."
)

rd_overall_infection_risk <- paste(
"(`numeric`)\\cr",
"The overall multiplier for the infection risk for the model."
)

rd_compartment_structure <- function(type = "param") {
checkmate::assert_choice(type, c("param", "field"))
paste(
"(`named integer()`)\\cr",
"The structure of the compartments in the model.",
"The names should be `E`, `I`, and `R` for the exposed, infectious, and recovered compartments, respectively.",
switch(type == "param", "The exposed compartments can optionally be omitted."),
switch(type == "field", "Read only.")
)
}

rd_disease_progression_rates <- function(type = "param") {
checkmate::assert_choice(type, c("param", "field"))
paste(
"(`named numeric()`)\\cr",
"The overall progression rates for the disease states.",
"The reciprocal of each rate is the average time spent in the all of the corresponding compartments.",
switch(type == "param", "The exposed compartments can optionally be omitted."),
switch(type == "field", "Read only.")
)
}
30 changes: 25 additions & 5 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ CCW

backends
bitemporal
bmatrix

cccc
ccccc
ccccccc
cccccccc
catalog
cetera
cdot
cdots
classname
cloneable
CMD
Expand All @@ -22,12 +28,14 @@ COVID
covid
colname

dag
db
dbi
DBIConnection
DBIDriver
dbplyr
dI
ddots
Diekmann
diseasy
diseasystore
DiseasystoreBase
Expand All @@ -42,16 +50,13 @@ dk
DMI
doi
dplyr
dR
ds
dS
dt
dtplyr
DuckDB

ecdc
ECDC
Eggo
EI
endblock
Engbo
epiverse
Expand All @@ -67,6 +72,7 @@ github
gov
Gruson

hline
hypoexponential

ij
Expand All @@ -82,22 +88,27 @@ Kirkeby
kt

Lasse
leftarrow
linelist
linter
linters
lintr
Lyngse

malthusian
mathcal
md
medrxiv
Mielke
moduleowner
Myrup

neq
nolint
normalise
nrow

odot
OO
ORCID
org
Expand All @@ -120,14 +131,20 @@ R's
Randl
Rasmus
regex
rightarrow
Rightarrow
rlang
rm
RM
Rmd
RS
rsif

SCDB
Schou
seir
SEIR
sim
simulist
Skytte
SSI
Expand All @@ -145,6 +162,9 @@ TODOs
ts

u
underbrace

vdots

walkthrough
www
Expand Down

0 comments on commit 8b7e69f

Please sign in to comment.