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