github_create_repo: Create a new github repo.

Description Usage Arguments Examples

Description

Create a new github repo.

Usage

1
2
3
4
5
  github_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

1
2
3
4
5
6
7
8
## Not run: 
github_auth(scope='repo')
options(useragent='ropensci')
github_create_repo(user='schamberlain', name='test')

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

## End(Not run)

ropensci/sandbox documentation built on May 27, 2019, 6:34 p.m.