KentonWhite / ProjectTemplate

A template utility for R projects that provides a skeletal project.
http://projecttemplate.net
GNU General Public License v3.0
622 stars 159 forks source link

Added RStudio configuration to create new project #312

Closed Hugovdberg closed 2 years ago

Hugovdberg commented 2 years ago

Allows to create a new project from the RStudio "New Project" wizard.

Closes #311

Types of change

Pull request checklist


Proposed changes

Added a inst/rstudio/templates/project/projecttemplate.dcf file per the instructions on https://rstudio.github.io/rstudio-extensions/rstudio_project_templates.html. A new internal function create_project_rstudio was created to parse the options from the wizard. For simplicity of the graphical user interface the merge.strategy argument of ProjectTemplate::create.project was converted to a boolean checkbox, and the rstudio.project argument was fixed to TRUE.

As this is only a light wrapper around create.project and only accessed through the graphical user interface of rstudio I did not add documentation or tests. If necessary I can add some later.

KentonWhite commented 2 years ago

Thanks @Hugovdberg !