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 · 7 comments · May be fixed by #2045
Open

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

elipousson opened this issue Sep 1, 2023 · 7 comments · May be fixed by #2045
Labels
feature a feature request or enhancement non-package tidy-dev-day 🤓 Tidyverse Developer Day

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
@jennybc
Copy link
Member

jennybc commented Jul 22, 2024

How do we feel about this issue in light of the fact that quarto::quarto_create_project() now exists?

https://quarto-dev.github.io/quarto-r/reference/quarto_create_project.html

@hadley
Copy link
Member

hadley commented Jul 23, 2024

I think it's probably worth making use_quarto_project() (or maybe use_project_quarto()) that calls quarto::quarto_create_project().

@jennybc
Copy link
Member

jennybc commented Jul 23, 2024

In terms of naming and patterning off an existing thing, create_project() would arguably be the front-runner.

@hadley
Copy link
Member

hadley commented Jul 23, 2024

Yes, of course, not sure why I wrote use 😞

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 tidy-dev-day 🤓 Tidyverse Developer Day
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants