Skip to contents

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

Usage

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

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.

Value

Invisibly returns the path to the created Quarto document.

Details

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

Examples

if (FALSE) { # \dontrun{
# Create a Quarto document with the default name
write_quarto()

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