Skip to content
/ browse Public

Navigate and generate links to remote files

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

tmastny/browse

Repository files navigation

browse

browse makes it easy to open files in Github from RStudio. Try the Browse to remote file addin while highlighting text in a file.

Alternatively, use Link to remote file to automatically copy the url to your clipboard. This makes it easy to share links in Slack, Github, and Twitter!

Installation

You can install browse with:

devtools::install_github("tmastny/browse")

browse now supports Bitbucket and Gitlab.

Examples

You can also use

browse::browse()
browse::link()

in the RStudio console to browse to the file and line where your cursor is in the editor.

And inside and outside RStudio, it also works as a command-line tool:

You can use a relative path from your working directory, or an absolute path, as long as the file is in a git repo.

# working directory is the top level of repo
browse("R/browse.R")
browse("R/browse.R#L6-L9")

# working directory is the R/ folder of repo
browse("../README.md")

# relative or absolute paths to other repos
browse("~/rpackages/dplyr/DESCRIPTION")

About

Navigate and generate links to remote files

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages