Learn R Programming

gooseR (version 0.1.2)

brand_rmd_template: Generate RMarkdown template with brand styling

Description

Generate RMarkdown template with brand styling

Usage

brand_rmd_template(
  brand = "block",
  title = "Report",
  output_format = "html_document",
  output_file = NULL
)

Value

RMarkdown template content

Arguments

brand

Name of the brand

title

Document title

output_format

RMarkdown output format (default: "html_document")

output_file

Path to save template (NULL to return as string)

Examples

Run this code
if (FALSE) {
# Create branded RMarkdown template in temp directory
temp_file <- file.path(tempdir(), "report.Rmd")
brand_rmd_template("block", "My Report", output_file = temp_file)
}

Run the code above in your browser using DataLab