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
    # Bioc packages
    bpkgl = biocPkgList()
    urldetails = githubURLParts(bpkgl$URL)
    urldetails = urldetails[!is.na(urldetails$url),]
    head(urldetails)

[Package BiocPkgTools version 1.2.0 Index]