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

Add create_quarto_project or support Quarto-related parameters in create_project #1891

Open
elipousson opened this issue Sep 1, 2023 · 3 comments
Labels
feature a feature request or enhancement non-package

Comments

@elipousson
Copy link

In exploring options for creating a R Project file, I found create_project() and wondered if it might be enhanced by the addition of new parameters to better support the creation of Quarto projects.

A simple create_quarto_project() that includes the basic _quarto.yml settings that is created when selecting "Quarto Project" from the New Project dialog in RStudio could be one option.

Another option could be a project type parameter, e.g. "project", "website", "book", "blog", corresponding to those same default settings.

One last (but not mutually exclusive) option could be updating create_project() to take a config_file parameter (similar to use_pkgdown()) and offering some way to define a set of files to use as a starting place (maybe using a repo_spec parameter similar to use_standalone()).

If there is interest in this feature, I'd be happy to work on it and open a pull request.

@jennybc
Copy link
Member

jennybc commented Sep 1, 2023

I wonder if there are plans for anything like this in quarto-r @jjallaire @cderv.

Where is the obvious home for it? 🤔

@cderv
Copy link
Contributor

cderv commented Sep 4, 2023

Yes definitely something we should do in quarto-r to me. This is feature request already.

Just need to spend some time on a new version there.

Though this could be easy to do in usethis if you want something like this (as you have other project-creation function already) - everything would be done by quarto create project.

So for the obvious place, it is also you choice. However, I would say that even if you do it in usethis we would do in quarto R package anyway. So probably there is the obvious place, and here is the optional one for convenience to usethis users.

@hadley
Copy link
Member

hadley commented Nov 3, 2023

I think the way forward would be for use_quarto_project() to be a thin wrapper over either the cli or the quarto package.

@hadley hadley added feature a feature request or enhancement non-package labels Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement non-package
Projects
None yet
Development

No branches or pull requests

4 participants