The qpost package provides two functions for maintaining a Quarto blog:
qpost() — an interactive dialog that scaffolds a new
blog post directory, index.qmd file, and correctly
formatted YAML front matteradd_coins() — appends COinS metadata to a
finished post so reference managers like Zotero can automatically import
itqpost() opens an interactive dialog and requires
a pane-capable IDE (RStudio or Positron); it will stop with an
error if run from a plain R console, Rscript, or a
non-interactive script. add_coins() also auto-detects the
active file in RStudio/Positron, but can be used from any R session by
passing file_path explicitly.
qpost()This opens an interactive dialog (in the Viewer pane or a separate
window) where you fill in the post’s title, author, date, and optional
fields like subtitle, categories, and a featured image. On submit,
qpost() creates the post directory and
index.qmd, then opens the file for editing.
The qpost() dialog window
qpost() is also available as an RStudio Addin under
Addins > Create Quarto Post, so you can bind it to a
keyboard shortcut.
For the full list of dialog fields, .Rprofile
configuration options, generated output structure, and troubleshooting,
see Creating Quarto Blog Posts with
qpost.
add_coins()With COinS, you provide metadata from your blog posts to software tools like bibliography managers, enabling automatic retrieval and making it easier to cite your articles correctly.
Once a post is written, run:
on the currently open post to append a hidden COinS
<span> at the end of the post. Zotero and similar
tools detect this span and automatically fill in the title, author,
date, and other citation details when saving your post to a library.
For an explanation of what COinS is, why it matters, and how to configure auto-resolution of metadata fields, see Adding COinS Metadata for Zotero.
qpost() referenceadd_coins() reference