Turn your RStudio untitled tabs into gists. You monsters.
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.
Also includes Gistfo App, an RStudio addin for opening, editing, and updating gists in RStudio.
# install.packages("remotes")
remotes::install_github("MilesMcBain/gistfo")
# To install app dependencies as well
remotes::install_github("MilesMcBain/gistfo", dependencies = TRUE)
Select the text or source file tab you would like to turn into a Gist. Then, from the RStudio Addins menu select either Make Private Gist from Text or Tab or Make Public 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()