Skip to contents

Creates and initializes a new Project R6 object from a DESCRIPTION file (local or remote) or from manually supplied metadata.

Usage

dl_project_init(
  DESCRIPTION = "DESCRIPTION",
  project = NULL,
  overwrite = FALSE,
  env = "prod"
)

Arguments

DESCRIPTION

Optional. Either:

  • A local path to a DESCRIPTION file (e.g., "DESCRIPTION").

  • A Git path (e.g., "packages/g6tr.projects/vignettes/2025-08-01_fever").

  • NULL, to create an empty project initialized with provided metadata.

project

Character. Project ID when creating a new project without a DESCRIPTION file.

  • Required if DESCRIPTION is NULL.

  • Optional otherwise.

overwrite

Logical. If TRUE, overwrite an existing project in S3. If FALSE, the function will confirm existence but not modify the object.

env

Datalake environment ("prod" or "test"). Default "prod".

Value

A fully initialized Project R6 object (invisibly).

Details

If DESCRIPTION is NULL, a new empty project is created, and project must be provided explicitly.