Skip to content

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

Open

Description

@lpiep

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions