createRepo {RepoGenerator} | R Documentation |
createRepo
Description
Creates a new project and pushes it to GitHub
Usage
createRepo(name, path, data, packages = c("here", "knitr", "rmarkdown",
"tidyverse", "usethis"), user, organizer = user, token = "GITHUB_PAT",
readme, ssh = TRUE)
Arguments
name |
Name to use for project and repo |
path |
Location for the new project |
data |
data.frame listing data sources. Must have at least the following columns: Local (the name the file should be on disk after downloaded), Remote (the URL of the file), Mode (the way to write to disk, either 'w' or 'wb'). |
packages |
Vector of packages that the user will be instructed to install. |
user |
GitHub username |
organizer |
Name of organizer of class. This can be in the form a a Markdown-style link. |
token |
The name of the environment variable holding the GitHub access token. This can be set with |
readme |
Path to parameterized rmarkdown document with parameters |
ssh |
If |
Details
This is designed to make a bare repo to be used for workshops. It will create a new project with a customized README and customized download file. It then pushes this to GitHub.
Value
If all operations are successful, returns TRUE
Author(s)
Jared P. Lander