Class that defines the Title Page in the Generic Report
TitlePage.RdThis R6 class relates to the Title Page in a report that adds all the required fields of the Generic Report Title Page Developer note: This class is developed using private and active fields rather than public fields directly which facilitates more rigid behaviour after the class has been initialised. If it is deemed that edit the fields after initialisation is a rare case then we might consider simplifying these classes to use public fields.
Active bindings
report_titleActive binding for setting the report title
departmentActive binding for setting the department
study_titleActive binding for setting the study title
study_numberActive binding for setting the study number
statusActive binding for setting the document status
versionActive binding for setting the document version
dateActive binding for setting the date
bus_classActive binding for setting the business classification
changelog_tableActive binding for setting the changelog table
signatures_tableActive binding for setting the signatures table
Methods
Method new()
Arguments
report_titleString. Report title.
departmentString. Department.
study_titleString. Study title of the document
study_numberString. Study number of the document
statusString. Status of the document, with possible values
DraftorFinalversionString. Version of the document.
dateString. Date (DD-Mmm-YYYY) of the final document release.
bus_classString. Business Classification.
changelog_tableFlextable. Table to be added after the title page (Optional)
signatures_tableFlextable. Table to be added after the title page (Optional)
Method get_title_page()
Generate title page. Takes an object of class TitlePage.
as input and generates the title page.
Usage
TitlePage$get_title_page(
reference_docx = generic_report_template(),
output_path = "."
)Arguments
reference_docxString. Template document in .docx format providing styling and structure information for rendering your docx report. This is configured to be Generic Report Template using the function
generic_report_template().output_pathString. Path where the title page in docx format should be written. Default is the current working directory.
Examples
## ------------------------------------------------
## Method `TitlePage$new`
## ------------------------------------------------
if (FALSE) { # \dontrun{
tp = TitlePage$new(
report_title = "Super cool document",
department = "Cool department",
study_title = "Compute super cool things",
study_number = "OWNDJQW9923",
status = "Draft",
version = "1",
date = "01-Feb-2024",
bus_class = "Very confidential")
} # }
## ------------------------------------------------
## Method `TitlePage$get_title_page`
## ------------------------------------------------
if (FALSE) { # \dontrun{
tp = TitlePage$new(
report_title= "Super cool document",
department = "Cool department",
study_title = "Compute super cool things",
study_number = "OWNDJQW9923",
status = "Draft",
version = "1",
date = "01-Feb-2024",
bus_class = "Very confidential")
tp$get_title_page()
} # }