Learn R Programming

froggeR (version 1.0.0)

write_scss: Create a Quarto SCSS File

Description

Creates or opens an SCSS file in the www/ directory. If the file already exists, it is opened directly. Otherwise, the template is downloaded from the frogger-templates repository.

Usage

write_scss(filename = "custom", path = here::here())

Value

Invisibly returns the path to the file.

Arguments

filename

Character. The name of the file without the .scss extension. A www/ prefix and .scss extension are stripped automatically if provided, so "custom2" and "www/custom2.scss" are equivalent. Only letters, numbers, hyphens, and underscores are allowed. Default is "custom".

path

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

Details

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

See Also

init, write_quarto

Examples

Run this code
if (FALSE) {
# Create the default custom.scss
write_scss()

# Create a second SCSS file
write_scss("custom2")
# These are equivalent
write_scss("www/custom2.scss")
}

Run the code above in your browser using DataLab