quarto-dev / quarto-dev/quarto-cli
Embedding from Other Documents and Tabset panels
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
I ran into this issue with a project and I tried reproducing it with just the basic Quarto manuscript project. Not sure if I have missed something in the documentation or whether this an actual bug, but decided to make a not of it.
Steps to reproduce
---
title: paneltest
authors:
- name: Norah Jones
affiliation: The University
roles: writing
corresponding: true
bibliography: references.bib
---
## Section
This is a simple placeholder for the manuscript's main document [@knuth84].
```{r}
1 + 1
```
{{< embed notebooks/nbsource.qmd#fig-mtcars >}}
Another embed but this time in panel
{{< embed notebooks/nbsource.qmd#fig-inpanel >}}
---
title: "Untitled"
editor: visual
---
```{r}
#| label: fig-mtcars
library(tidyverse)
ggplot(data = mtcars, aes(x = mpg)) +
geom_histogram() +
labs(x = "Miles Per Gallon (mpg)", y = "Count", title = "Distribution of MPG in mtcars")
```
::: panel-tabset
## Test
```{r}
#| label: fig-inpanel
library(tidyverse)
ggplot(data = mtcars, aes(x = mpg)) +
geom_histogram() +
labs(x = "Miles Per Gallon (mpg)", y = "Count", title = "Distribution of MPG in mtcars")
```
## not test
Some text
:::
Expected behavior
No response
Actual behavior
Rendering HTML preview [index.qmd]
ERROR: The cell fig-inpanel does not exist in notebook
Your environment
R Statistical language (version 4.2.2 on Windows 10 x64 (build 22631), R studio "Ocean Storm" Release (4da58325, 2024-01-28) for windows
Quarto check output
Quarto 1.4.549
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.4.549
Path: C:\Users\X\AppData\Local\Programs\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: v2024.02
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: TinyTex
Path: C:\Users\X\AppData\Roaming\TinyTeX\bin\windows
Version: 2023
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.11.2
Path: C:/Users/X/AppData/Local/Programs/Python/Python311/python.exe
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with py -m pip install jupyter
[>] Checking R installation...........OK
Version: 4.2.2
Path: C:/PROGRA1/R/R-421.2
LibPaths:
- C:/Users/X/AppData/Local/R/win-library/4.2
- C:/Program Files/R/R-4.2.2/library
knitr: 1.45
rmarkdown: 2.25
[>] Checking Knitr engine render......OK
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 with the embedded notebooks/nbsource.qmd example and render the basic Quarto manuscript as an HTML preview using the supplied R and panel-tabset content. Compare the standalone fig-mtcars embed with fig-inpanel; done means the panel-contained figure resolves instead of reporting that the cell does not exist in the notebook.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100