Why?

April 1, 2016

RStudio addins manager

Filed under: Computing, R — Tags: — csgillespie @ 12:36 am

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 is an RStudio addin for managing other addins. To run these addins, you need the latest version of RStudio.

Installation

The package can be installed via devtools

## Need the latest version of DT as well
devtools::install_github('rstudio/DT')
devtools::install_github("csgillespie/addinmanager")

Running addins

After installing the package, the Addins menu toolbar will be populated with a new addin called Addin Manager. When you launch this addin, a DT table will be launched:

screenshot

In the screenshot above, the highlighted addins, shinyjs and ggThemeAssit, indicate that this addins have already installed.

When you click Done

  • Highlighted addins will be installed.
  • Un-highlighted addins will be removed.

Simple!

Including your addin

Just fork and alter the addin file which is located in the inst/extdata directory of the package. This file is a csv file with three columns:

  • addin Name/title
  • Brief Description
  • Package. If the package is only on github, use name/repo.

The initial list of addins was obtain from daattali’s repo.

Advertisements

7 Comments »

  1. After the conversation yesterday on Reddit/Twitter, I find the heart’s in the right place with this, but I can’t recommend a solution that requires fully uninstalling a package in order to remove the add-in.

    This is really wonderful for visualizing what addins are available.

    But I’m really hoping RStudio quickly adds in some native additional control for masking installed add-ins at the users request.

    Comment by taylorandrewr — April 1, 2016 @ 2:22 pm

    • I missed the conversation on Reddit/twitter.

      I agree that fully uninstalling an addin seems drastic. Although with browser add-ons I always remove the addins I’m not using. I’m almost convinced that CRAN isn’t the right place for addins since most addins are a single function packages. There needs to be a CRAN-addin type site.

      Comment by csgillespie — April 1, 2016 @ 2:31 pm

      • There was a discussion brought up by Dean Attali asking whether addins needed to be in their own separate packages from ‘regular packages’ as I had “complained” to him on Reddit that after updating shinyjs I now had an additional add-in, and I thought addins should really be their own package.

        The more I think about it though, the more I’m fine with them being in established packages, but it would require additional support from RStudio for managing them.

        But if they were in their own packages, then the addinmanager would be the perfect tool, but only as long as every add-in is in your repository.

        Comment by taylorandrewr — April 1, 2016 @ 2:36 pm

  2. Which is to say, until RStudio adds native support that is similar to and builds off of this, this addin manager is wonderful. My hope is that it will not be quite as necessary though when the next update to RStudio is released (though it’s ability to highlight available addins and quickly explore them will still be very beneficial).

    Comment by taylorandrewr — April 1, 2016 @ 2:30 pm

    • From start to finish, this addin took less than 90 minutes (my first shiny addin). I also didn’t start it until midnight (couldn’t sleep). I think addins have potential. Just not sure what yet. The fact that the console hangs when shiny is running is a bit of a pain.

      Comment by csgillespie — April 1, 2016 @ 2:39 pm

  3. Reblogged this on Moritz S. Schmid and commented:
    Thanks! Great blog and addin!

    Comment by fanatichuman — April 6, 2016 @ 7:19 pm

  4. […] reblogging this from: https://csgillespie.wordpress.com/2016/04/01/rstudio-addins-manager/ Thanks to Colin […]

    Pingback by RStudio addins and ggplot theme assist | Moritz S. Schmid — April 6, 2016 @ 8:07 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: