-
Notifications
You must be signed in to change notification settings - Fork 331
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
Include Quarto templates in R Package #1111
Comments
No that isn't currently supported however we are working on a templates mechanism for quarto which should be available soon! |
Wow that was a response within 1 minute, thanks! |
Hey @Pecners, I'll reopen so that once the template mechanism is finally done for Quarto, we don't forget to document a comparaison with R Markdown template mechanism to make them available, and we see if making them available through R package is possible. (The quarto template mechanism should make possible to share template in various way and R package may not be the best way). Thanks for opening the question / suggestion by the way! |
We don't current support templates via the RStudio dialogs, but the templating mechanism for the CLI is now supported and documented. https://quarto.org/docs/extensions/formats.html#format-templates The best exemplars of this are currently the journal article templates which bundle extensions plus a template: https://quarto.org/docs/journals/ Note that templates really can be a simple as a repo with contents - there is no requirement to create a format extension as well, though that is often useful. We'll leave rstudio/rstudio#11316 as an issue to track improving support within RStudio |
Would it be possible to add support for Quarto templates via RStudio dialogs (as is supported with R Markdown templates)? This will allow Quarto to be more accessible, including to students. |
That would be a feature request for https://github.com/rstudio/rstudio |
Bug description
Is it possible to include Quarto templates in an R Package, as is possible for R Markdown? I've tried following the same methodology as for R Markdown, i.e. I added template resources to inst/quarto/templates, but that doesn't seem to work.
I'm working in RStudio, and I'm expecting to select the template as from the "New R Markdown", shown here:
I'm not seeing the same capability with "New Quarto Document" after updating my package with template material:
RStudio Version:
RStudio 2022.02.3+492 "Prairie Trillium" Release (1db809b8323ba0a87c148d16eb84efe39a8e7785, 2022-05-20) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
Checklist
quarto check
in a terminal in your issue?The text was updated successfully, but these errors were encountered: