Learn R Programming

froggeR (version 1.0.0)

write_quarto: Create a New Quarto Document

Description

Downloads the Quarto template from the frogger-templates repository and writes it to the pages/ directory. Errors if a file with the same name already exists.

Usage

write_quarto(filename = "Untitled-1", path = here::here())

Value

Invisibly returns the path to the created Quarto document.

Arguments

filename

Character. The name of the file without the .qmd extension. Only letters, numbers, hyphens, and underscores are allowed. Default is "Untitled-1".

path

Character. Path to the project directory. Default is current project root via here.

Details

The file is written to pages/<filename>.qmd. The pages/ directory is created automatically if it does not exist.

See Also

init, write_variables, write_brand

Examples

Run this code
if (FALSE) {
# Create a Quarto document with the default name
write_quarto()

# Create a Quarto document with a custom name
write_quarto(filename = "analysis")
}

Run the code above in your browser using DataLab