View source: R/g_gists_create.r
g_gists_create | R Documentation |
Create a GitHub gist
g_gists_create(description = NULL, public = "true", filename = NULL, content = NULL)
description |
Optional string |
public |
Required boolean |
filename |
Path to a file with the code you want to upload. |
content |
The content of the file (only use if filename=NULL). |
The gist metadata.
## Not run: g_auth() options(useragent='ropensci') g_gists_create(description='my cool description', filename="fromr.md", content="testing creating a gist from R") g_gists_create(description='my cool description', filename="~/github/ropensci/stuff.md") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.