Skip to contents

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

Usage

g6tr_setup(
  name,
  title = NULL,
  init_renv = TRUE,
  git_branch = NULL,
  attach_s3 = TRUE,
  open_project = TRUE,
  newsletter = FALSE
)

Arguments

name

The name of the client project.

title

The title of the client project. Make this descriptive!

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.

newsletter

Create new project as a newsletter project inside packages/g6tr.voice/vignettes? Default is FALSE. This is not meant to be changed by the user.

Value

(invisible) project folder path.

Examples

if (FALSE) { # \dontrun{
g6tr_setup(
  "project_alpha",
   title = "Project Alpha",
   git_branch = NULL,
   attach_s3 = FALSE
)

# Create a project without attaching S3.
g6tr_setup(
  "project_alpha",
   title = "Project Alpha",
   git_branch = NULL,
   attach_s3 = FALSE
)
} # }