make_ipm_report {ipmr} | R Documentation |
Generate an RMarkdown file with IPM metadata
Description
Generates a .rmd
file containing a mathematical
description of the proto_ipm
object.
Usage
make_ipm_report(
object,
rmd_dest = getwd(),
title = "",
output_format = "html",
render_output = FALSE,
block_eqs = TRUE,
long_eq_length = 65
)
## Default S3 method:
make_ipm_report(
object,
rmd_dest = getwd(),
title = "",
output_format = "html",
render_output = FALSE,
block_eqs = TRUE,
long_eq_length = 65
)
## S3 method for class 'ipmr_ipm'
make_ipm_report(
object,
rmd_dest = getwd(),
title = "",
output_format = "html",
render_output = FALSE,
block_eqs = TRUE,
long_eq_length = 65
)
make_ipm_report_body(proto_ipm, block_eqs, rmd_dest, long_eq_length)
Arguments
object |
A |
rmd_dest |
The folder to save the Rmd file at. The default is
|
title |
The title to include in the document. This is not necessarily
the same as |
output_format |
The format to include in the YAML header for the created
|
render_output |
A logical indicating whether to call
|
block_eqs |
A logical. If |
long_eq_length |
For longer equations, |
proto_ipm |
A |
Details
make_ipm_report_body
only translates the iteration
expressions and vital rate expressions into Markdown with LaTeX, and does
not produce any headers needed to knit the file. This function is exported
mostly for re-usage in pdb_report
, and isn't really
intended for use by ipmr
users.
Value
For make_ipm_report
, the filepath to the .rmd
file. The
default name is "ipmr_report_<current_date>.rmd"
. For
make_ipm_report_body
, a character vector with Markdown and LaTeX
suitable for rendering, but without a header.
Translations
For iteration expressions, vital rate expressions, and parameter names,
make_ipm_report
first translates all values in the data_list
to beta_X
. For example, s = surv_int + surv_slope * z_1
is
translated into beta_0 + beta_1 * z_1
, and then is translated into
LaTeX equations. Since everything is call beta_X
, a glossary is
provided at the end of each report that matches beta
s to their names
in the data_list
.