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

character() A vector of URLs

Value

A data.frame with four columns:

  • url: The original GitHub URL

  • user_repo: The GitHub "username/repo", combined

  • user: The GitHub username

  • repo: The 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 May 23, 2024, 1:53 p.m.