Skip to contents

Sets up a new analytics project with standardized structure and configuration for reproducible analysis using DVC, Docker, renv, and Quarto.

Usage

create_analytics_project(
  path,
  use_dvc = TRUE,
  use_docker = TRUE,
  use_renv = TRUE,
  git_init = TRUE,
  open = rlang::is_interactive()
)

Arguments

path

Character. The path where the project should be created.

use_dvc

Logical. Whether to initialize DVC. Default is TRUE.

use_docker

Logical. Whether to set up Docker configuration. Default is TRUE.

use_renv

Logical. Whether to initialize renv. Default is TRUE.

git_init

Logical. Whether to initialize git repository. Default is TRUE.

open

Logical. Whether to open the new project in RStudio. Default is TRUE.

Value

Invisibly returns the path to the created project.

Examples

if (FALSE) { # \dontrun{
create_analytics_project("my_analysis")
} # }