Learn R Programming

froggeR (version 0.6.0)

write_scss: Create a Quarto SCSS File

Description

This function creates a .scss file for custom Quarto styling and opens it for editing.

Usage

write_scss(path = here::here())

Value

Invisibly returns the path to the created file.

Arguments

path

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

Details

The function creates a custom.scss file with styling variables, mixins, and rules for customizing Quarto document appearance.

See Also

quarto_project, write_quarto

Examples

Run this code
# Create a temporary directory for testing
tmp_dir <- tempdir()

# Write the SCSS file
write_scss(path = tmp_dir)

# Confirm the file was created
file.exists(file.path(tmp_dir, "custom.scss"))

# Clean up
unlink(file.path(tmp_dir, "custom.scss"))

Run the code above in your browser using DataLab