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

Include Quarto templates in R Package #1111

Closed
6 tasks
Pecners opened this issue Jun 8, 2022 · 6 comments
Closed
6 tasks

Include Quarto templates in R Package #1111

Pecners opened this issue Jun 8, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Pecners
Copy link

Pecners commented Jun 8, 2022

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:
image

I'm not seeing the same capability with "New Quarto Document" after updating my package with template material:
image

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

  • formatted your issue so it is easier for us to read?
  • included a minimal, self-contained, and reproducible example?
  • documented the quarto version you're running, by providing the output produced by quarto check in a terminal in your issue?
  • documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • documented which operating system you're running? If on Linux, please provide the specific distribution as well.
  • upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
@Pecners Pecners added the bug Something isn't working label Jun 8, 2022
@jjallaire
Copy link
Collaborator

No that isn't currently supported however we are working on a templates mechanism for quarto which should be available soon!

@jjallaire jjallaire added this to the Future milestone Jun 8, 2022
@Pecners
Copy link
Author

Pecners commented Jun 8, 2022

Wow that was a response within 1 minute, thanks!

@Pecners Pecners closed this as completed Jun 8, 2022
@cderv
Copy link
Collaborator

cderv commented Jun 9, 2022

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!

@cderv cderv reopened this Jun 9, 2022
@cderv cderv added enhancement New feature or request and removed bug Something isn't working labels Jun 9, 2022
@jjallaire jjallaire modified the milestones: Future, 1.0 Jun 9, 2022
@jjallaire jjallaire modified the milestones: 1.0, Formats Jun 21, 2022
@dragonstyle
Copy link
Collaborator

dragonstyle commented Jul 20, 2022

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

@isaactpetersen
Copy link

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.

@cscheid
Copy link
Collaborator

cscheid commented May 11, 2024

RStudio dialogs

That would be a feature request for https://github.com/rstudio/rstudio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants