pin_versions | R Documentation |
pin_versions()
lists available versions a pin.
pin_versions_prune()
deletes old versions.
pin_version_delete()
deletes a single version.
pin_versions(board, name, ...)
pin_version_delete(board, name, version, ...)
pin_versions_prune(board, name, n = NULL, days = NULL, ...)
board , name |
A pair of board and pin name. For modern boards,
use |
... |
Additional arguments passed on to methods for a specific board. |
version |
Version identifier. |
n , days |
Pick one of |
A data frame with at least a version
column. Some boards may
provided additional data.
board <- board_temp(versioned = TRUE)
board %>% pin_write(data.frame(x = 1:5), name = "df")
board %>% pin_write(data.frame(x = 2:6), name = "df")
board %>% pin_write(data.frame(x = 3:7), name = "df")
# pin_read() returns the latest version by default
board %>% pin_read("df")
# but you can return earlier versions if needed
board %>% pin_versions("df")
ver <- pin_versions(board, "df")$version[[1]]
board %>% pin_read("df", version = ver)
# delete all versions created more than 30 days ago
board %>% pin_versions_prune("df", days = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.