Learn R Programming

projects (version 0.0.1.9003)

createAnalysisProject: Create a project laid out for an analysis project

Description

Create a project laid out for an analysis project

Usage

createAnalysisProject(name, title = NULL, folder = getwd(),
  initial_status = "wip", packagedeps = "packrat", git = TRUE,
  reset = TRUE, external_setup = list(git_service = "GitHub", login =
  gh::gh_whoami()$login, private = FALSE, protocol = "ssh", ci_activation =
  "travis"), dirs = c("data", "analysis", "outputs"))

Arguments

name

Project

title

"What the Project Does (One Line, Title Case)" If NULL, a random one will be generated.

folder

Folder under which to create the project

initial_status

initial repostatus.org status for the project, whose badge will be added to the README.

packagedeps

Set a tool for package reproducibility

git

Configure Git

reset

whether to reset the project to current project

external_setup

How to do the partly interactive setup of online git, CI and coverage platforms. If NULL, no setup.

  • git_service Only "GitHub" is supported at the moment.

  • login username or organization name to use for the git service. If NULL, no GitHub repo is created.

  • private whether to make the created repo private

  • protocol "ssh" or "https", protocol to use for GitHub

  • ci_activation Only NULL, and "travis" are supported at the moment. "travis" means calling usethis::use_travis() and adding the Travis badge to the README.

dirs

Directories to create

Examples

Run this code
# NOT RUN {
folder <- tempdir()
createAnalysisProject(
  name = "doggos", title = "Counting cute dogs",
  folder = folder,
  packagedeps = "none",
  git = TRUE, external_setup = NULL,
  reset = TRUE,
  dirs = c("cats", "dogs")
)
list.files(file.path(folder, "doggos"))
unlink(file.path(folder, "doggos"))
# }

Run the code above in your browser using DataLab