matt-dray / quartostamp

:white_flower::scroll: R package: RStudio Addin to insert ('stamp') useful Quarto elements
https://matt-dray.github.io/quartostamp
Other
59 stars 2 forks source link
hacktoberfest quarto rstudio-addin

{quartostamp}

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check

An R package containing an RStudio Addin to insert pre-written divs and classes into your Quarto documents.

Why 'quartostamp'? You could physically stamp some pre-prepared type into a literal quarto document; you can digitally stamp some pre-written elements into your qmd file.

See the package website for the full list of available functions and the Quarto website for full Quarto documentation.

Please add requests as GitHub issues, or raise a pull request.

Install and use

To install this package from GitHub, run the following and then restart RStudio:

install.packages("remotes")  # if not yet installed
remotes::install_github("matt-dray/quartostamp")

To use:

  1. Put the cursor in your Quarto file where you'd like to insert an element. Alternatively, highlight some text that you would like to use in the body of an element.
  2. Click the 'RStudio Addins' dropdown at the top of the RStudio IDE.
  3. Scroll/search for 'QUARTOSTAMP' and click the function you want.

Use the help files to learn more about each function. They all start with stamp_ so you can search like ?stamp_notes.

You can also create custom RStudio keyboard shortcuts for these functions:

  1. Go to 'Tools' then 'Modify Keyboard Shortcuts...'
  2. Search for the {quartostamp} function that you want a shortcut for.
  3. Click in the 'Shortcut' column and type the key combination you want to use.
  4. Click 'Apply'.

Related

Other packages can be used alongside {quartostamp} when writing a document: