Turn your RStudio untitled tabs into gists. You monsters.
Carbon Edition Now Available:
Carbon mode opens the code on https://carbon.now.sh and copies gist url to your clipboard so you can easily paste into a carbon tweet.
library(devtools)
install_github("MilesMcBain/gistfo")
Select the text or source file tab you would like to turn into a Gist.
Then, from the RStudio Addins menu select either Make Gist from Text or Tab
or Make Gist and Send to Carbon
.
library(gistfo)
Make sure an RStudio tab is active or select text in a source file, then run gistfo()
. It will open a browser window asking you to authenticate a third-party OAuth application. Should be all good from there.
Carbon mode: gistfoc()