Create a structured project from a given template. You can find example of projects built with {structured} here.

structure_project(
  path,
  level = c("Basic", "Intermediate"),
  type = c("Script", "R Markdown (Simplified)", "R Markdown", "Targets", "Shiny",
    "None"),
  open = FALSE
)

Arguments

path

Path to the new project.

level

Project level. One of "Basic" or "Intermediate". Default to "Basic".

type

Project type. One of "Script", "R Markdown (Simplified)", "R Markdown", "Targets", "Shiny" or "None". Default to "Script".

open

Open option. If TRUE and on RStudio, open the project in a new session. If TRUE and not on RStudio, just set the working directory to the new project directory. If FALSE (default), do nothing.

Value

Return the project path invisibly.

Examples

if (FALSE) { structure_project("cool-project", level = "Basic", type = "Script") }