branch | R Documentation |
branch_create()
- creates a new branch from an existing GitHub repo.
branch_delete()
- deletes a branch from an existing GitHub repo.
branch_remove()
- previous name of branch_delete
, deprecated.
branch_create(repo, branch, new_branch)
branch_delete(repo, branch)
branch_remove(repo, branch)
repo |
GitHub repository address in |
branch |
Repository branch to use. |
new_branch |
Name of branch to create. |
branch_create()
and branch_remove()
invisibly return a list containing
the results of the relevant GitHub API call.
repo_branches
## Not run:
repo_create("ghclass-test", "test_branch", auto_init=TRUE)
branch_create("ghclass-test/test_branch", branch = "main", new_branch = "test")
repo_branches("ghclass-test/test_branch")
branch_delete("ghclass-test/test_branch", branch="test")
repo_branches("ghclass-test/test_branch")
repo_delete("ghclass-test/test_branch", prompt = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.