create_project: Create new project scaffolding.

Description Usage Arguments Value Examples

Description

Creates all the scaffolding for a new project in a new directory. To use: 1. Go to https://github.com/settings/tokens to retrieve your auth_token. 2. Change your working directory to the location you want the project folder to be stored 3. Run the function. NOTE: folders cannot be added to github until there is a file in them. The github repo will be created under your personal account. You will need to transfer or fork the repo to the dsf organization account.

Usage

1
2
create_project(pkg_name, github = TRUE, auth_token = "get_from_github",
  pkg_depends = "tidyverse")

Arguments

pkg_name

Character string. A new folder will be in the created current working directory with this name

github

Logical. Create GitHub repo? Note this requires an auth_token

auth_token

Character string. Unique token provided by github required to create a repository under your personal account

pkg_depends

Character string or vector of strings. These are the packages used in the analysis.

Value

A new directory with a modified R package

Examples

1
create_project("pkgName", github = TRUE, auth_token = "a12k3l812143cla292f2asd81226eb")

dsf-test-organization/Large_Project_Template documentation built on May 15, 2019, 3:17 p.m.