g_gists_create: Create a GitHub gist

View source: R/g_gists_create.r

g_gists_createR Documentation

Create a GitHub gist

Description

Create a GitHub gist

Usage

  g_gists_create(description = NULL, public = "true",
    filename = NULL, content = NULL)

Arguments

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).

Value

The gist metadata.

Examples

## 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)

ropensci/gitr documentation built on May 18, 2022, 9:57 a.m.