This RStudio Addin uses the contents of the current text selection to generate a call to install.packages
. Then it sends that call to your RStudio Console, where you can modify it or evaluate it.
Click the thumbnail below to see a demo video on Youtube:
devtools::install_github("alandipert/insertinstall", source = TRUE)
Then in RStudio you should see it under Tools > Addins > Browse Addins...
, where you can assign it to a key combination of your choosing. I like to use Ctrl+Shift+I
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.