Skip to contents

Take local code and upload to a named gist

Usage

gist_upload(
  content = NULL,
  gist_name = NULL,
  description = "",
  public = TRUE,
  browse = TRUE
)

Arguments

content

the code, either the currently highlighted file or manually indicated code

gist_name

a valid filename ie my-code.R

description

a brief description of the gist or it's purpose

public

a logical, defaults to TRUE, indicates whether to make gist public or not

browse

a logical, defaults to TRUE, indicates whether to open the new gist in browser or not

Value

gist id and the gist URL to clipboard, can be piped directly into gist_to_carbon