g_create_repo: Create a new github repo.

View source: R/g_createrepo.r

g_create_repoR Documentation

Create a new github repo.

Description

Create a new github repo.

Usage

  g_create_repo(user = NULL, org = NULL, name = NULL,
    description = NULL, homepage = NULL, private = "False",
    has_issues = "True", has_wiki = "True",
    has_downloads = "True", team_id = NULL,
    auto_init = "False", gitignore_template = NULL)

Arguments

userorg

User or organization GitHub name.

name

Your new repo name. Required

description

Description of repo. Optional

homepage

Homepage for repo. Optional

private

Make the repo private? Creating private repositories requires a paid GitHub account.

has_issues

true to enable issues for this repository, false to disable them.

has_wiki

true to enable the wiki for this repository, false to disable it

has_downloads

true to enable downloads for this repository, false to disable them.

team_id

The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization.

auto_init

true to create an initial commit with empty README. Default is False.

gitignore_template

See https://github.com/github/gitignore

session

(optional) the authentication credentials from github_auth. If not provided, will attempt to load from cache as long as github_auth has been run.

Examples

## Not run: 
github_auth(scope='repo')
options(useragent='ropensci')
g_create_repo(user='schamberlain', name='test')

g_create_repo(user='schamberlain', name='test', description='testing', homepage='http://schamberlain.github.com/scott/')

## End(Not run)

ropensci/gitr documentation built on May 18, 2022, 9:57 a.m.