quarto-dev / quarto-dev/quarto-cli

quarto preview file.qmd --no-execute still evaluates inline code

Open
#2,799 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug preview
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description
$ quarto -V
1.2.161

$ quarto preview test-prez.qmd --no-execute

example-inline.qmd

---
format: html
---

Here is an inline eval, the first three numbers are `r 1:3`

If evaluated, the above should read:

> Here is an inline eval, the first three numbers are 1, 2, 3

image

Running on OSX 12.6
Apple M1 Pro

$mode
[1] "desktop"

$version
[1] ‘2022.11.0.203’

$long_version
[1] "2022.11.0-daily+203"

$release_name
[1] "Elsbeth Geranium"
Checklist
  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

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 running the reported quarto preview test-prez.qmd --no-execute command with the provided example-inline.qmd on the listed environment. Trace how preview handles the inline r 1:3 expression under --no-execute. Done means the expression is not evaluated when that option is used, while normal preview behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, markdown, r
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.