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

Support dev setting in rmarkdown yaml front matter #10412

Closed
jgutman opened this issue Jan 21, 2022 · 3 comments
Closed

Support dev setting in rmarkdown yaml front matter #10412

jgutman opened this issue Jan 21, 2022 · 3 comments
Labels
enhancement r markdown stale Issues which have been closed automatically due to inactivitiy.

Comments

@jgutman
Copy link
Contributor

jgutman commented Jan 21, 2022

As originally described in #9931, graphics device backend settings provided in the yaml front matter of an Rmd file are ignored within the RStudio execution context (inline chunk execution as well as in the console). For example:

---
title: "Minimal Example"
output:
  html_document:
        dev: ragg_png
---

```{r}
plot(1, main = "あいう ABC", xlab = "あいう ABC")
```

The ragg_png device will be used when the document is knit, but not when its chunks are executed inline. When dev='ragg_png' is provided as a chunk option, it is used to render the chunks within RStudio, but when the same option is provided via the yaml, it is not. Consider adding support for using certain options, specifically dev, from the yaml front matter within RStudio inline chunk execution.

@jgutman
Copy link
Contributor Author

jgutman commented Jan 21, 2022

We didn't address this as part of #9931 because the user can already specify the backend graphics device through either Tools > Global Options > Graphics and selecting the backend device, setting options(RStudioGD.backend = xx) in the user's .Rprofile, or setting the knitr chunk option dev. Will leave this option open to track interest in specifying the option via yaml (which is parsed by the knitr engine, but not currently by RStudio)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@github-actions github-actions bot added the stale Issues which have been closed automatically due to inactivitiy. label Jul 24, 2022
@github-actions
Copy link

github-actions bot commented Aug 7, 2022

This issue has been automatically closed due to inactivity.

@github-actions github-actions bot closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement r markdown stale Issues which have been closed automatically due to inactivitiy.
Projects
None yet
Development

No branches or pull requests

2 participants