report_fit | R Documentation |
nlmixr2
Fit Results to PowerPoint and WordAppends nlmixr2
fit results to an onbrand report object with the
content and format of the report in the supplied yaml file
report_fit(
obnd = NULL,
fit = NULL,
placeholders = NULL,
cat_covars = NULL,
cont_covars = NULL,
parameters = NULL,
rptyaml = system.file(package = "nlmixr2rpt", "templates", "report_fit.yaml"),
verbose = FALSE
)
obnd |
onbrand report object to have report elements appended to. |
fit |
nlmixr2 fit object to be reported. |
placeholders |
Manual placeholders, see |
cat_covars |
character vector of categorical covariates to overwrite defaults in yaml file. |
cont_covars |
character vector of continuous covariates to overwrite defaults in yaml file. |
parameters |
list with element names for each parameter to overwrite defaults in yaml file. |
rptyaml |
yaml file containing the report elements and structure. |
verbose |
Boolean variable when set to TRUE messages will be . |
onbrand object with the report elements added.
library(onbrand)
obnd = read_template(
template = system.file(package="nlmixr2rpt", "templates","nlmixr_obnd_template.pptx"),
mapping = system.file(package="nlmixr2rpt", "templates","nlmixr_obnd_template.yaml"))
# This will create an example fit object to use in the examples below
fit = fetch_fit_example()
# Appening fit results
obnd_pptx = report_fit(
fit = fit,
rptyaml = system.file(package="nlmixr2rpt", "examples", "report_fit_test.yaml"),
obnd = obnd)
# Writing the report to a file
save_report(obnd, file.path(tempdir(), "report.pptx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.