create_repo | R Documentation |
Create the main repo from a local directory
create_repo(
username = Sys.getenv("git.user"),
token = Sys.getenv("GITHUB_PAT"),
repo = basename(getwd()),
base_dir = dirname(getwd()),
groupname = "",
pre = "",
ssh = FALSE,
server = "https://api.github.com/"
)
username |
Username |
token |
Token (e.g., Sys.getenv("GITHUB_PAT") or Sys.getenv("GITHUB_PAT")) |
repo |
Name of the repo (assignment) |
base_dir |
Base directory for the repo. file.path(directory, assignment) should exist |
groupname |
Group to create on GitLab (defaults to user's namespace) |
pre |
Pre-amble for the repo (assignment) name |
ssh |
Use SSH for authentication |
server |
The GitLab API server |
See https://github.com/vnijs/gitgadget for additional documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.