Skip to contents

This function creates a new project directory with the specified name and path. It sets up the necessary subdirectories and a configuration file for the project. If a project with the same name already exists and 'overwrite' is FALSE, it will not modify the existing project.

Usage

create_project(
  project_name,
  path = system.file("extdata/projects", package = "OptirrigPTGE"),
  overwrite = FALSE
)

Arguments

project_name

character Name of the project.

path

character Path where the project directory will be created. Default is the 'extdata/projects' directory of the 'OptirrigPTGE' package.

overwrite

logical Whether to overwrite an existing project with the same name (default: FALSE).