Learn R Programming

gistr (version 0.2.0)

star: Star a gist

Description

Star a gist

Usage

star(gist, ...)

unstar(gist, ...)

star_check(gist, ...)

Arguments

gist
A gist object or something that can be coerced to a gist object.
...
Curl options passed on to GET

Value

  • A message, and a gist object, the same one input to the function.

Examples

Run this code
id <- '7ddb9810fc99c84c65ec'
gist(id) %>% star()
gist(id) %>% star_check()
gist(id) %>% unstar()
gist(id) %>% unstar() %>% star()
gist(id) %>% star_check()
gist(id) %>%
  star() %>%
  star_check()

Run the code above in your browser using DataLab