-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME.Rmd
48 lines (34 loc) · 1.51 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
---
output:
md_document:
variant: markdown_github
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# An RStudio addin for roxygen2 code blocks
[](https://travis-ci.org/csgillespie/roxygen2Comment)
[](http://cran.rstudio.com/package=roxygen2Comment)
RStudio addins let you execute a bit of R code or a Shiny app through the RStudio IDE,
either via the Addins dropdown menu or with a keyboard shortcut. This package contains an RStudio addin for commenting roxygen2 code.
This package can be installed via
```{r eval=FALSE}
devtools::install_github("csgillespie/roxygen2Comment")
```
## Running addins
After installing the package, the _Addins_ menu toolbar will be populated with the
new, exported addin. The addin will work exactly like the RStudio keyboard
shortcut for commenting.
* If you execute the addin on standard code, it will add `#'` to the start of the line.
* If you execute the addin on an roxygen2 comment, it will remove `#'`
## Manage your addins
See my other [package](https://github.com/csgillespie/addinmanager) for
conviently adding and removing RStudio addins.
## Other information
* If you have any suggestions or find bugs, please use the github issue tracker.
* Feel free to submit pull requests for new addins.