usethis (version 1.4.0)

browse-this: 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

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataCamp Workspace