Skip to content

RStudio addin to help you build RStudio addins

License

Unknown, MIT licenses found

Licenses found

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

gadenbuie/rstudioAddinFriend

Repository files navigation

rstudioAddinFriend

rstudioAddinFriend helps you build RStudio addins. At the moment, this package includes several helpful addins that return active RStudio contexts that are available when you run an RStudio addin.

Running one of the ... Context addins will call the corresponding function in rstudioapi and will save the result to a global variable. For example, running Get Console Editor Context runs rstudioapi::getConsoleEditorContext() and saves the result to .consoleEditorContext.

## Saving rstudioapi::getConsoleEditorContext() to .consoleEditorContext
str(.consoleEditorContext)
## List of 4
##  $ id       : chr "#console"
##  $ path     : chr ""
##  $ contents : chr ""
##  $ selection:List of 1
##   ..$ :List of 2
##   .. ..$ range: int [1:4] 1 1 1 1
##   .. ..$ text : chr ""

Or run Get All RStudio Context to run all of the other addins at once.

Installation

You can install the released version of rstudioAddinFriend from GitHub.

devtools::install_github("gadenbuie/rstudioAddinFriend")

About

RStudio addin to help you build RStudio addins

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