View source: R/render_example_report.R
render_example_report | R Documentation |
render_example_report
render_example_report( title = "Example Hospital Flow Report", author = "ARC NWL Information Intelligence Team", hospital_name = "Anytown General Hospital", use_example_data = TRUE, sample_weeks = 20, sample_no_of_patients = NULL, import_list_path = system.file("extdata", "example-config", "example_import_list.rds", package = "hospitalflow"), output_dir, use_existing_spell_table = TRUE, existing_spell_table_path = NULL, existing_moves_table_path = NULL )
title |
The title to use for the report. |
author |
The author to be named on the report. |
hospital_name |
The hospital name to use for the report and all graphs. |
use_example_data |
If TRUE, use the package example data. |
sample_weeks |
The number of weeks of sample data to use for the report. |
import_list_path |
The directory containing the import list as an RDS file. Ignored if use_example_data is TRUE. |
output_dir |
The directory where the report will be saved. |
use_existing_spell_table |
If TRUE, skip import_standardise_bind and just load a spell table and a moves table directly. If use_example_data is also TRUE, uses the example spell table provided in the package. |
existing_spell_table_path |
path to existing spell table. Ignored if use_existing_spell_table is FALSE or use_example_data is TRUE. |
existing_moves_table_path |
path to existing moves table. Ignored if use_existing_spell_table is FALSE or use_example_data is TRUE. |
sample_no_patients |
The number of patients in the sample data to use for the report. |
The system.time output for the time taken to render the report.
## Not run: render_example_report(output_dir = "../reports", use_existing_spell_table = FALSE) render_example_report(output_dir = "../reports", use_existing_spell_table = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.