View source: R/pin-store-fetch.R
pin_fetch | R Documentation |
These are low-level functions that power pin_read()
, pin_write()
,
pin_upload()
, and pin_download()
. They are needed primarily for folks
developing new board types, and should not generally be called directly.
pin_fetch(board, name, version = NULL, ...)
pin_store(board, name, paths, metadata, versioned = NULL, x = NULL, ...)
board |
A pin board, created by |
name |
Pin name. |
version |
Retrieve a specific version of a pin. Use |
... |
Additional arguments passed on to methods for a specific board. |
paths |
A character vector of file paths to upload to |
metadata |
A list containing additional metadata to store with the pin.
When retrieving the pin, this will be stored in the |
versioned |
Should the pin be versioned? The default, |
x |
An object (typically a data frame) to pin. |
pin_fetch()
is called primarily for its side-effect of downloading
remote pins into the local cache. It returns the same data as pin_meta.
pin_store()
is called for its side-effect of uploading a local file
to a remote board. It invisibly returns the fully qualified pin name.
board <- board_temp()
board %>% pin_upload(system.file("CITATION"))
path <- board %>% pin_download("CITATION")
path
readLines(path)[1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.