Description Usage Arguments Value Examples
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.
1 2 | create_project(pkg_name, github = TRUE, auth_token = "get_from_github",
pkg_depends = "tidyverse")
|
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. |
A new directory with a modified R package
1 | create_project("pkgName", github = TRUE, auth_token = "a12k3l812143cla292f2asd81226eb")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.