-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
68 lines (47 loc) · 1.35 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# browse
<!-- badges: start -->
<!-- badges: end -->
browse makes it easy to open files in Github from RStudio.
Try the `Browse to remote file` addin while highlighting text in a file.
![](browse.gif)
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:
```r
devtools::install_github("tmastny/browse")
```
`browse` now supports Bitbucket and Gitlab.
## Examples
You can also use
```r
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:
![](browse2.gif)
You can use a relative path from your working directory, or an absolute path,
as long as the file is in a git repo.
```r
# 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")
```