new_paste: Create a new paste

Description Usage Arguments Note

View source: R/new-paste.r

Description

Create a new paste

Usage

1
2
3
new_paste(text, name = NULL, format = "text", impersonate = FALSE,
  visibility = c("public", "unlisted", "private"), expires = "n",
  pastebin_key = pastebin_api_key())

Arguments

text

of paste

name

name/title of paste

format

hint for syntax highlighting. Defaults to text. See the detail page for more info.

impersonate

if TRUE then PASTEBIN_USER and PASTEBIN_PASSWORD must be set in order to generate a user key to be applied with the API key. Don't blame me, blame pastebin.

visibility

one of public, unlisted or private. Defaults to public

expires

either n for never or an abbreviated time expiration string in the form of a digit (the "number of") and a units character m for minute(s), d for day(s), w for week(s). Defaults to n (never). See the detail page for more info.

pastebin_key

pastebin API key

Note

The maximum size a paste can be is 512 kilobytes (0.5 megabytes). Pro members are allowed to create pastes up to 10 megabytes.


hrbrmstr/pastebin documentation built on Aug. 1, 2017, 3:42 p.m.