Learn R Programming

gistr (version 0.2.0)

fork: Fork a gist

Description

Fork a gist

Usage

fork(gist, ...)

Arguments

gist
A gist object or something coerceable to a gist
...
Further named args to GET #'

Value

  • A gist class object

Examples

Run this code
# fork a gist
gists()[[1]] %>% fork()

# browse to newly forked gist
gist(id='0831f3fbd83ac4d46451') %>% fork() %>% browse()

# extract the last one
gist(id='1642874') %>%
 forks() %>%
 extract(length(.))

Run the code above in your browser using DataLab