write_scss {froggeR} | R Documentation |
Create a 'Quarto' SCSS file
Description
This function creates the .scss
file so that any 'Quarto' project can be easily
customized with SCSS styling variables, mixins, and rules.
Usage
write_scss(path = here::here(), .initialize_proj = FALSE)
Arguments
path |
Character string. Path to the project directory. |
.initialize_proj |
Logical. TRUE only if starting a
|
Details
The function includes a robust YAML handling mechanism that safely adds new SCSS file.
See vignette("customizing-quarto", package = "froggeR")
vignette for more help.
Value
A SCSS file to customize 'Quarto' styling.
Examples
# Create a temporary directory for testing
tmp_dir <- tempdir()
# Write the SCSS file
write_scss(path = tmp_dir)
# Confirm the file was created (optional, for user confirmation)
file.exists(file.path(tmp_dir, "custom.scss"))
# Clean up: Remove the created file
unlink(file.path(tmp_dir, "custom.scss"))
[Package froggeR version 0.5.1 Index]