pin_meta | R Documentation |
Pin metadata comes from three sources:
Standard metadata added by pin_upload()
/pin_write()
. This includes:
$name
- the pin's name.
$file
- names of files stored in the pin.
$file_size
- size of each file.
$pin_hash
- hash of pin contents.
$type
- type of pin: "rds", "csv", etc
$title
- pin title
$description
- pin description
$tags
- pin tags
$urls
- URLs for more info on pin
$created
- date this (version of the pin) was created
$api_version
- API version used by pin
Metadata supplied by the user, stored in $user
. This is untouched
from what is supplied in pin_write()
/pin_upload()
except for being
converted to and from to YAML.
Local metadata generated when caching the pin, stored in $local
.
This includes information like the version of the pin, and the path
its local cache.
pin_meta(board, name, version = 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. |
A list.
b <- board_temp()
b %>% pin_write(head(mtcars), "mtcars", metadata = list("Hadley" = TRUE))
# Get the pin
b %>% pin_read("mtcars")
# Get its metadata
b %>% pin_meta("mtcars")
# Get path to underlying data
b %>% pin_download("mtcars")
# Use tags instead
b %>% pin_write(tail(mtcars), "mtcars", tags = c("fuel-efficiency", "automotive"))
b %>% pin_meta("mtcars")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.