quarto-dev / quarto-dev/quarto-r

"html_fragment" and "envir" functionality from Rmd?

Open
#73 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement upstream
Dominant language
R
Stars
161
Forks
29
Avg merge
3h 18m
Merged PRs (30d)
1

Description

I often used two features of Rmarkdown that I can't find equivalents for:

  • the ability to create html fragments (html documents without headers) (with https://rmarkdown.rstudio.com/html_fragment_format.html), and
  • the ability to compile a document with rmarkdown::render in a specified environment (via the envir argument) so that I could pass data objects to the document.

I can't find equivalents to these in quarto. I thought standalone: false might do it, based on the description ("Produce output with an appropriate header and footer (e.g. a standalone HTML, LaTeX, TEI, or RTF file, not a fragment)", from https://quarto.org/docs/reference/formats/html.html) but as far as I can tell, that option does not change the compilation of my documents at all.

Are there equivalents to these? Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the R interface to Quarto and comparing its document-rendering entry point with rmarkdown::render, especially the envir argument and standalone: false format option. Verify whether equivalent workflows already exist; if not, establish the expected behavior for HTML fragments and passed data objects and add coverage for both.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.