Skip to contents

Creates a new project in the g6tr.voice package of our monorepo. It automatically creates vignettes and scripts for you to work in with our default parameters set-up.

Usage

g6tr_newsletter_setup(
  edition,
  init_renv = TRUE,
  git_branch = NULL,
  attach_s3 = TRUE,
  open_project = TRUE
)

Arguments

edition

Newsletter edition code. We launch Newsletter surveys once per month, and for each survey we create a corresponding R project. This parameter takes survey edition code in the form YYYY-MM. For example, for 2023 September edition use 2023-09.

init_renv

Whether to setup project as renv project (default TRUE)?

git_branch

If not NULL then creates a new branch with the name passed as character.

attach_s3

Should a new S3 bucket be created (default TRUE)?

open_project

Open the project when setup is done? Default is TRUE.

Value

(invisible) project folder path.

Examples

if (FALSE) { # \dontrun{
g6tr_newsletter_setup(
  "2023-09",
   git_branch = NULL,
   attach_s3 = FALSE
)
} # }