quarto-dev / quarto-dev/quarto-cli
Embedding from Other Documents and Tabset panels
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 6k
- Fork
- 458
- Merge medio
- 1g 9h
- PR unite (30g)
- 41
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- r
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100