Opens browser to a given GitHub repo. Inspired by similar browse_ functions included in the usethis package.

browse_repo(repo_ref)

Arguments

repo_ref

Repository reference as created by create_repo_ref()

Value

Returns URL in non-interactive session or launches browser to docs in interactive session

Examples

if (FALSE) { my_repo <- create_repo_ref("repo_owner", "repo") browse_repo(my_repo) }