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

Feature Request: Add option to initialize project using a template #271

Open
lpiep opened this issue Dec 19, 2022 · 0 comments
Open

Feature Request: Add option to initialize project using a template #271

lpiep opened this issue Dec 19, 2022 · 0 comments

Comments

@lpiep
Copy link

lpiep commented Dec 19, 2022

The "New Project Wizard" in RStudio offers the option to create projects using a template and to provide parameters to use in that template. It would be nice to have the same functionality in the rstudioapi package.

Using Rstudio's example template at https://github.com/rstudio/ptexamples, I might expect to initialize a new project using something like this:

params <- list(
  check = TRUE,
  select = "Field A",
  text = "here is some text",
  file = "/path/to/my/file"
)
rstudioapi::initializeProject(path = 'my_new_project', binding = 'hello_world', params = params)

Thanks!

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

No branches or pull requests

1 participant