Skip to content

.qmd files as document templates #11316

Open

Description

@Robinlovelace

I'm not 100% sure this is a new feature request, or even whether this is the right repo to open such an issue, but it could be cool and useful to be able to select templates for .qmd documents in the same way you can for .Rmd documents. In the below screenshot I guess my feature request is for a new option underneath 'Interactive' called "Template" or similar. This would enable/encourage others to develop their own .qmd style documents as enabled/encouraged by the rticles package (where I thought about opening this issue).

image

A way of creating .qmds based on templates from the command line, e.g. with rstudioapi, would also be on my wish list although that may be best handled by things external to RStudio. Apologies if you're already on the case with this and hope this request is of use/interest in any case!

Activity

  1. ronblum commented on May 31, 2022

    @ronblum
    Contributor

    @Robinlovelace Thank you for the suggestion! I was actually considering asking for this enhancement request, although I don't know if this is intentional or on the roadmap. I'll tag it as a request. Also, this is the right repo 👍, since it would be a change in the IDE's support of Quarto, rather than Quarto itself.

  2. RaymondBalise commented on Jun 21, 2022

    @RaymondBalise

    My package rUM adds Rmd templates (among other things) and I would love to be able to add Quarto templates. I just can't miss the chance to add "quart o rUM" templates in the next release of rUM. So 👍 @Robinlovelace and 🙏 @ronblum.

  3. ronblum commented on Jun 24, 2022

    @ronblum
    Contributor

    @RaymondBalise Re-reading this, if I understand correctly, you're looking for a change in Quarto using the command line interface, not specific to RStudio. Is this correct?

    (I missed this the first time because I was too busy laughing at the joke. 😄 )

  4. RaymondBalise commented on Jul 6, 2022

    @RaymondBalise

    @ronblum I am hoping for a tweak to the IDE. Currently I can do File>New File>R Markdown... and then choose From Template and pick one of the rUM templates that I added into the rUM package. When I do File>New File>Quarto Document there is no From Template option. When I tried to add the directories needed for the additional templates (in the rUM package) it did not recognize the directory that would hold new templates. For example, this is the path needed for adding R Markdown templates:
    image
    I tried to replace "rmakdown" in the path with "quarto" in the path and the IDE did not recognize it.

    I am giving a talk at the R Medicine conference in August called "A Quart o' rUM (Using the rUM Package for Reproducible Medical Research)". We have a new release of rUM ready to uncork. It includes a paper shell for a biomedical research project done in quarto but it can't include the other rUM templates that match what we built for R Markdown.

    So, if there is any way to get the functionality for adding quarto templates into the daily builds of the IDE I would love to play. If I can help the developer(s) in any way just send up a flare.

  5. cderv commented on Jul 6, 2022

    @cderv
    Collaborator

    @ronblum just to share for reference that there is also a related feature request in Quarto: quarto-dev/quarto-cli#1111

    Probably syncing effort on both side will be a way to make this comes true.

  6. ronblum commented on Jul 6, 2022

    @ronblum
    Contributor

    Thanks all! I'll raise this.

    Triage: See discussion above and in Quarto CLI request 1111.

  7. github-actions commented on Jan 10, 2023

    @github-actions

    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.

  8. added
    stale
    on Jan 10, 2023
  9. cderv commented on Jan 10, 2023

    @cderv
    Collaborator

    We probably want to keep that open

  10. removed
    stale
    on Jan 11, 2023
  11. github-actions commented on Sep 1, 2023

    @github-actions

    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.

  12. added
    stale
    on Sep 1, 2023
  13. cderv commented on Sep 4, 2023

    @cderv
    Collaborator

    We probably want to keep that open

  14. RaymondBalise commented on Sep 4, 2023

    @RaymondBalise

    Yes please do. I would love to update my rUM package to include hooks into the IDE for Quarto. My students would certainly appreciate it. As it stands they have to go to download gists instead of just using the UI.

  15. removed
    stale
    on Sep 8, 2023
  16. venpopov commented on Jan 27, 2024

    @venpopov

    Please do add this feature!

  17. added this to the Product Backlog milestone on Feb 29, 2024
  18. jthomasmock commented on Mar 6, 2024

    @jthomasmock
    Contributor

    I played around with creating a template through the RMarkdown system. This requires a template file in .Rmd OR .rmd and .qmd will not be recognized. See: https://github.com/rstudio/rstudio/pull/9454/files and

    paths <- file.path(skeletonPath, c("skeleton.rmd", "skeleton.Rmd"))

    Ironically, because a .rmd with Quarto yaml is treated like Quarto:

    ---
    format: html
    ---
    

    A .Rmd could be used to create a Quarto template and distribute through an R package.

  19. RaymondBalise commented on Mar 6, 2024

    @RaymondBalise

    Thanks for giving it a look Tom. I use the R Markdown templates that I baked into {rUM} to help novices get started. I really want to instead teach them with Quarto from the get-go. I think telling them to use the R Markdown templates to create a quarto document (and then to change the file suffix) would be bad mojo for absolute novices.

    Given that Quarto can now nearly completely replace R Markdown, it would be extremely good, especially for instructors, if we could use/access a Quarto template store in the RStudio IDE.

  20. isaactpetersen commented on May 11, 2024

    @isaactpetersen

    I just want to add my voice in support of adding the option of using Quarto templates via RStudio dialogs (as is supported with R Markdown templates). This will allow Quarto to be more accessible, including to students. Thanks!

  21. AaronRendahl commented on Jul 14, 2024

    @AaronRendahl

    I'd love to have this too!

  22. maldridgeepa commented on Jul 16, 2024

    @maldridgeepa

    I'd also love this feature. we have created R project templates to standardize work products in our group, and this includes R-markdown templates. There are good applications for us to use quarto, but it currently requires more work because our document templates are not available in quarto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions