quarto-dev / quarto-dev/quarto-cli
quarto preview file.qmd --no-execute still evaluates inline code
Open
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

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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