Skip to contents

A high-level helper for serializing and saving a full Project R6 object to the standardized datalake structure under the "project" entity.

Usage

dl_project_write(
  proj,
  overwrite = FALSE,
  verbose = TRUE,
  check = TRUE,
  env = "prod"
)

Arguments

proj

An R6 Project object containing metadata and surveys.

overwrite

Logical. If TRUE, overwrites existing project file.

verbose

Logical. If TRUE, prints progress messages. Default TRUE.

check

Logical. If TRUE, performs additional checks on the Project object before writing. Default TRUE.

env

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

Value

Invisibly returns the S3 key written.

Details

This function is equivalent to calling $wrap_up() on a Project object, but can be used externally to safely persist the project state.

Examples