knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
This RStudio addin enables you to create Github gists easily in RStusio with gistr
package.
Install from Github as usual:
devtools::install_github("nakamichiworks/gistrAddin")
The package is automatically registered as RStudio addin. See RStudio Addins for explanation.
You need to authorize gistr
with your Github account first. Please refer to gistr
package's README for detailed instruction.
Select "Create Github gist" from RStudio addins menu.
Select gist files, set options, and push "Create gist" button.
URL for the created gist is returned (and opened in your borwser if needed).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.