remotes (version 1.1.0)

parse_github_repo_spec: Parse a concise GitHub repo specification

Description

The current format is: [username/]repo[/subdir][#pull|@ref|@*release] The *release suffix represents the latest release.

Usage

parse_github_repo_spec(repo)

Arguments

repo

Character scalar, the repo specification.

Value

List with members: username, repo, subdir ref, pull, release. Members that do not appear in the input repo specification are omitted.

Examples

Run this code
# NOT RUN {
parse_github_repo_spec("metacran/crandb")
parse_github_repo_spec("jeroenooms/curl@v0.9.3")
parse_github_repo_spec("jimhester/covr#47")
parse_github_repo_spec("hadley/dplyr@*release")
parse_github_repo_spec("mangothecat/remotes@550a3c7d3f9e1493a2ba")
# }

Run the code above in your browser using DataCamp Workspace