write_quarto: Create a New Quarto Document

View source: R/write_quarto.R

write_quartoR Documentation

Create a New Quarto Document

Description

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.

Details

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

Value

Invisibly returns the path to the created Quarto document.

See Also

init, write_variables, write_brand

Examples

## Not run: 
# Create a Quarto document with the default name
write_quarto()

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

## End(Not run)


froggeR documentation built on March 17, 2026, 9:06 a.m.