reuse | R Documentation |
Reuse R objects
reuse( x, name, board = reuse::board(), type = "qs", update = getOption("reuse.update", default = FALSE) ) board()
x |
An object (typically a data frame) to pin. |
name |
Pin name. |
board |
A pin board, created by |
type |
File type used to save |
update |
Logical. update the cache? |
The R object written to or read from the cache.
one <- 1 %>% reuse("one") two <- 2 %>% reuse("one") two two <- 2 %>% reuse("one", update = TRUE) two withr::local_options(list(reuse.board = pins::board_temp())) board() pins::pin_exists(board(), name = "one") 1 %>% reuse("one") pins::pin_exists(board(), name = "one")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.