The following snippets are installed:
- **header**: Insert a standard R script header with Title, Author, Date, and Description
- **callout**: Insert a Quarto callout structure
- **mermaid**: Insert a Mermaid diagram chunk
- **tabset**: Insert a tabset structure
By default the snippets are written to a temporary file (inside `tempdir()`)
to comply with CRAN's restriction on writing to the user's filespace during
examples, vignettes, and tests. To install in your actual RStudio snippets
file, provide the explicit path via `path`, for example:
- Windows: `
- Mac/Linux: `~/.config/rstudio/snippets/r.snippets`
If you already have custom snippets, this function will append the quartify
snippets to your existing file. If quartify snippets were previously installed,
they will be automatically removed and replaced with the new version.
The function will automatically open the snippets file in RStudio if available.
Simply save the file (Ctrl+S / Cmd+S) to reload the snippets immediately
without restarting RStudio. Then type the snippet name (e.g., `header`)
and press Tab to insert the template.