Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to embed plot from source qmd to destination qmd like in tutorial #6959

Closed
coltongearhart opened this issue Sep 23, 2023 · 3 comments · Fixed by #7009
Closed

Unable to embed plot from source qmd to destination qmd like in tutorial #6959

coltongearhart opened this issue Sep 23, 2023 · 3 comments · Fixed by #7009
Assignees
Labels
bug Something isn't working manuscript Issues related to manuscript output triaged-to Issues that were not self-assigned, signals that an issue was assigned to someone.
Milestone

Comments

@coltongearhart
Copy link

Bug description

Using the minimal working example below, a plot should show up in the index.html, but it does not. And the reference is unable to be resolved.
Screenshot 2023-09-22 at 11 13 33 PM
Screenshot 2023-09-22 at 11 13 40 PM
Screenshot 2023-09-22 at 11 14 01 PM

Steps to reproduce

Using the template found / tutorial found here and making a minimal example: Manuscripts

Destination file:

---
title: Test
author: Colton Gearhart
---
## Introduction
{{< embed notebooks/test.qmd#fig-norm >}}

@fig-norm is shown.

Source file located at notebooks/test.qmd:

---
title: test
---
```{r}
#| label: fig-norm
plot(rnorm(10))
```

Expected behavior

This plot should be rendered in the article.
Rplot

Actual behavior

Screenshot 2023-09-22 at 11 16 15 PM

And reference doesn't work
Screenshot 2023-09-22 at 11 14 01 PM

Your environment

RStudio: Version 2023.06.2+561 (2023.06.2+561)
MacOS: 13.5.2 (22G91)

Quarto check output

Quarto 1.4.376
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.8: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.376
Path: /Applications/quarto/bin

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

[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /Library/TeX/texbin
Version: 2018

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

[✓] Checking Python 3 installation....OK
Version: 3.9.6
Path: /Library/Developer/CommandLineTools/usr/bin/python3
Jupyter: (None)

  Jupyter is not available in this Python installation.
  Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
Version: 4.3.1
Path: /usr/local/Cellar/r/4.3.1/lib/R
LibPaths:
- /usr/local/lib/R/4.3/site-library
- /usr/local/Cellar/r/4.3.1/lib/R/library
knitr: 1.44
rmarkdown: 2.25

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

@coltongearhart coltongearhart added the bug Something isn't working label Sep 23, 2023
@cscheid cscheid added the manuscript Issues related to manuscript output label Sep 23, 2023
@cscheid cscheid added this to the v1.4 milestone Sep 23, 2023
@cscheid cscheid added the triaged-to Issues that were not self-assigned, signals that an issue was assigned to someone. label Sep 23, 2023
@dragonstyle
Copy link
Collaborator

This is a bug caused by omitting a fig-cap for the figure - we are in the midst of some big changes in behavior regarding figures with and without captions, so this is something that we'll look at more closely. In the meantime, you can add a caption to resolve the issue:

---
title: test
---

```{r}
#| label: fig-norm
#| fig-cap: This is the figure's caption
plot(rnorm(10))
```

@cderv
Copy link
Collaborator

cderv commented Sep 25, 2023

@dragonstyle shouldn't we keep that open to track resolution despite the workaround ?

@coltongearhart
Copy link
Author

Apologies, I closed it. Still new to github :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working manuscript Issues related to manuscript output triaged-to Issues that were not self-assigned, signals that an issue was assigned to someone.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants