Creates a presentation-only object shared by programmatic rendering and the Shiny report workflow. It does not alter report values or analytical data.
Usage
cr_report_style(
paper = "A4",
mode = c("colour", "grayscale"),
density = c("standard", "compact"),
locale = c("en", "de"),
logo = NULL,
primary_colour = "#315A70",
secondary_colour = "#65747C",
date_format = NULL,
date_time_format = NULL,
labels = character(),
footer_text = NULL,
include_audit_appendix = FALSE,
show_signature_lines = FALSE,
draft_watermark = FALSE
)Arguments
- paper
Paper size. Version 2 currently supports
"A4".- mode
"colour"or intentionally monochrome"grayscale".- density
"standard"or"compact".- locale
Display-label locale, currently
"en"or"de".- logo
Optional local PNG, JPEG, or PDF logo path.
- primary_colour, secondary_colour
Six-digit hex colours. In grayscale mode neutral values are used regardless of these settings.
- date_format, date_time_format
Optional
format()patterns. Defaults are human-readable and locale-specific.- labels
Named display-label overrides.
Optional laboratory-controlled document-footer statement.
- include_audit_appendix
Include the technical appendix by default.
- show_signature_lines
Add printable reviewer/authorizer lines.
- draft_watermark
Add a light watermark only when status is
DRAFT.
See also
Other laboratory reporting:
cr_report_display_data(),
cr_report_profile(),
cr_report_spec(),
cr_validate_report_spec()
Examples
style <- cr_report_style(mode = "grayscale", density = "compact")
class(style)
#> [1] "cr_report_style" "list"