githubURLParts {BiocPkgTools} | R 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)

[Package BiocPkgTools version 1.4.6 Index]