Skip to content

Commit c7128ed

Browse files
doc edits
1 parent 4794921 commit c7128ed

13 files changed

+39
-35
lines changed

R/formula_list_generators.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ MockChangeModel = function() {
328328
}
329329

330330

331-
##' State Updates
331+
##' Change How State Variables are Updated
332332
##'
333333
##' These functions return a modified version of a model specification, such
334334
##' that the state variables are updated each time step according to different
@@ -803,7 +803,7 @@ HazardUpdateMethod = function(change_model) {
803803

804804
# Change Components
805805

806-
#' Flow
806+
#' Specify Flow Between Compartments.
807807
#'
808808
#' Specify different kinds of flows between compartments.
809809
#'
@@ -1045,6 +1045,8 @@ to_change_component.formula = function(x) Formula(x)
10451045
#'
10461046
#' @param model A model object.
10471047
#'
1048+
#' @describeIn mp_expand Synonym of `mp_expand` present only for
1049+
#' back-compatibility. Please use `mp_expand` in new projects.
10481050
#' @export
10491051
mp_reduce = function(model) UseMethod("mp_reduce")
10501052

R/make_model_index.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ get_mod_info <- function(f) {
5454
return(data.frame(dir=f_base, res))
5555
}
5656

57-
#' Print a table of contents of available models
57+
#' Print a Table of Existing Models
5858
#'
59-
#' Collects information from the headers of the README files in the model directories
60-
#' and returns the results as a data frame
59+
#' Collects information from the headers of the README files in
60+
#' model directories and returns the results as a data frame
6161
#'
6262
#' @param dir directory to list
6363
#' @param show_missing (logical) include entries for models with no README information?

R/mp_library.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mp_library = function(...) {
33
stop("under construction")
44
}
55

6-
#' TMB Library
6+
#' Read Item from a Model Library
77
#'
88
#' Get a TMB model specification from a model library.
99
#'
@@ -62,7 +62,7 @@ mp_tmb_library = function(..., package = NULL, alternative_specs = FALSE) {
6262
stop("Malformed model library entry.")
6363
}
6464

65-
#' Model Starter
65+
#' Copy Existing Model as a Starting Point
6666
#'
6767
#' Create a directory with a template model definition.
6868
#'

R/mp_tmb_model_spec.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ must_save_time_args = function(formulas) {
256256
return(time_args)
257257
}
258258

259-
#' Specify a TMB Model
259+
#' Create TMB Model Specification
260260
#'
261261
#' Specify a simulation model in the TMB engine.
262262
#'

_pkgdown.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ reference:
1818

1919
- subtitle: Create Model Specifications
2020
desc: >
21-
Functions for creating, finding, and reading model specification objects.
21+
Functions for creating new model specification objects.
2222
contents:
2323
- mp_tmb_model_spec
2424
- mp_per_capita_flow
25+
26+
- subtitle: Find Model Specifications
27+
desc: >
28+
Functions for finding, copying, and loading existing model
29+
specification objects.
30+
contents:
2531
- show_models
2632
- mp_tmb_library
2733
- mp_model_starter
@@ -35,7 +41,6 @@ reference:
3541
- mp_tmb_insert_reports
3642
- mp_euler
3743
- mp_expand
38-
- mp_reduce
3944

4045
- subtitle: Explore Model Specifications
4146
desc: >
@@ -80,7 +85,7 @@ reference:
8085
- mp_par
8186
- mp_traj
8287
- mp_rbf
83-
- mp_identity
88+
- transform_distr_param
8489

8590
- subtitle: Specify Distributional Assumptions
8691
desc: >

man/mp_expand.Rd

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mp_model_starter.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mp_per_capita_flow.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mp_reduce.Rd

Lines changed: 0 additions & 16 deletions
This file was deleted.

man/mp_tmb_library.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)