An Rstudio addin for adding and remove roygen2 comment
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
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
devtools::install_github("csgillespie/roxygen2Comment")
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.
#'
to the start of the line.#'
See my other package for conviently adding and removing RStudio addins.