quarto-dev / quarto-dev/quarto-cli

Chunk label missing when rendering HTML output in non-HTML format

Open
#11,299 2 comments 0 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Nov 4, 2024.

engines-knitr enhancement needs-design
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

Rendering the quarto file with html outputs to pdf throws the following error:

Error: Functions that produce HTML output found in document targeting pdf output.
[...]

Execution halted

Normally, an error when rendering a quarto document gives me the chunk label and / or line number where the error occurred. This is not the case in the error message above. I don't know if the error origins from the first or second chunk.

Steps to reproduce

---
format: pdf
---


```{r}
1+1
```


```{r}
plotly::plot_ly(x = 1, y = 1)
```
Expected behavior

Give me the chunk label and / or line number of where the error occured

Actual behavior

An error message (see above) with no line number and / or chunk label

Your environment
  • Rstudio 2024.04.2 Build 764
  • OS: Ubuntu 24.04 LTS
Quarto check output
Quarto 1.6.1
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.6.1
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2024.02
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/rata/.TinyTeX/bin/x86_64-linux
      Version: 2024

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.19 (Conda)
      Path: /home/rata/miniconda3/envs/renku/bin/python
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with conda install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.3
      Path: /usr/lib/R
      LibPaths:
        - /home/rata/R/x86_64-pc-linux-gnu-library/4.3
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.47
      rmarkdown: 2.27

[✓] Checking Knitr engine render......OK

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.