These functions take you to various web pages associated with a project (often, an R package) and return the target URL(s) invisibly. To form these URLs we consult:
Git remotes configured for the active project that appear to be hosted on a GitHub deployment
DESCRIPTION file for the active project or the specified
DESCRIPTION file is sought first in the local package library and then
CRAN landing page:
GitHub mirror of a CRAN package:
Templated URLs aren't checked for existence, so there is no guarantee
there will be content at the destination.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
browse_package(package = NULL) browse_project() browse_github(package = NULL) browse_github_issues(package = NULL, number = NULL) browse_github_pulls(package = NULL, number = NULL) browse_github_actions(package = NULL) browse_travis(package = NULL, ext = c("com", "org")) browse_circleci(package = NULL) browse_cran(package = NULL)
Name of package. If
Optional, to specify an individual GitHub issue or pull
request. Can be a number or
Version of travis to use.
browse_package(): Assembles a list of URLs and lets user choose one to
visit in a web browser. In a non-interactive session, returns all
browse_project(): Thin wrapper around
browse_package() that always
targets the active usethis project.
browse_github(): Visits a GitHub repository associated with the project.
In the case of a fork, you might be asked to specify if you're interested
in the source repo or your fork.
browse_github_issues(): Visits the GitHub Issues index or one specific
browse_github_pulls(): Visits the GitHub Pull Request index or one
specific pull request.
browse_travis(): Visits the project's page on
browse_circleci(): Visits the project's page on
browse_cran(): Visits the package on CRAN, via the canonical URL.
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.