githubURLParts: Extract GitHub user and repo name from GitHub URL

View source: R/githubUtils.R

githubURLPartsR Documentation

Extract GitHub user and repo name from GitHub URL

Description

Extract GitHub user and repo name from GitHub URL

Usage

githubURLParts(urls)

Arguments

urls

A character() vector of URLs

Value

A data.frame with four columns:

  • urlThe original GitHub URL

  • user_repoThe GitHub "username/repo", combined

  • userThe GitHub username

  • repoThe GitHub repo name

Examples

# find GitHub URL details for
# Bioconductor packages
bpkgl = biocPkgList()
urldetails = githubURLParts(bpkgl$URL)
urldetails = urldetails[!is.na(urldetails$url),]
head(urldetails)


seandavi/BiocPkgTools documentation built on Feb. 2, 2024, 12:02 p.m.