parse-git-repo | R Documentation |
A remote repo can be specified in two ways:
parse_github_url()
handles HTTPS and SSH remote URLs
and various GitHub browser URLs
parse_repo_spec()
handles this concise form:
[username/]repo[/subdir][#pull|@ref|@*release]
parse_repo_spec(repo)
parse_github_repo_spec(repo)
parse_github_url(repo)
repo |
Character scalar, the repo specification. |
List with members: username
, repo
, subdir
ref
, pull
, release
, some which will be empty.
parse_repo_spec("metacran/crandb")
parse_repo_spec("jimhester/covr#47") ## pull request
parse_repo_spec("jeroen/curl@v0.9.3") ## specific tag
parse_repo_spec("tidyverse/dplyr@*release") ## shorthand for latest release
parse_repo_spec("r-lib/remotes@550a3c7d3f9e1493a2ba") ## commit SHA
parse_repo_spec("igraph=igraph/rigraph") ## Different package name from repo name
parse_github_url("https://github.com/jeroen/curl.git")
parse_github_url("git@github.com:metacran/crandb.git")
parse_github_url("https://github.com/jimhester/covr")
parse_github_url("https://github.example.com/user/repo.git")
parse_github_url("git@github.example.com:user/repo.git")
parse_github_url("https://github.com/r-lib/remotes/pull/108")
parse_github_url("https://github.com/r-lib/remotes/tree/name-of-branch")
parse_github_url("https://github.com/r-lib/remotes/commit/1234567")
parse_github_url("https://github.com/r-lib/remotes/releases/latest")
parse_github_url("https://github.com/r-lib/remotes/releases/tag/1.0.0")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.