The goal of draft is to create drafts in a fast and useful way. It also uses gistr
package to upload files to Gist.
You can install draft from github with:
# install.packages("devtools")
devtools::install_github("jtrecenti/draft")
This is a basic example which shows you how to solve a common problem:
draft::draft()
After edit your file, run this in console:
draft::upload()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.