R: Quickly browse to important package webpages

browse-this {usethis} | R Documentation

## Quickly browse to important package webpages

### Description

These functions take you to various webpages associated with a package and return the target URL invisibly. Some URLs are formed from first principles and there is no guarantee there will be content at the destination.

### Usage

    browse_github(package = NULL)

    browse_github_issues(package = NULL, number = NULL)

    browse_github_pulls(package = NULL, number = NULL)

    browse_travis(package = NULL)

    browse_cran(package = NULL)

### Arguments

`package` | Name of package; leave as `NULL` to use current package
`number` | For GitHub issues and pull requests. Can be a number or `"new"`.

### Details

- `browse_github()`: Looks for a GitHub URL in the URL field of `DESCRIPTION`.

- `browse_github_issues()`: Visits the GitHub Issues index or one specific issue.

- `browse_github_pulls()`: Visits the GitHub Pull Request index or one specific pull request.

- `browse_travis()`: Visits the package's page on Travis CI.

- `browse_cran()`: Visits the package on CRAN, via the canonical URL.

### Examples

    browse_github("gh")
    browse_github_issues("backports")
    browse_github_issues("backports", 1)
    browse_github_pulls("rprojroot")
    browse_github_pulls("rprojroot", 3)
    browse_travis("usethis")
    browse_cran("MASS")

[Package usethis version 1.4.0 Index]