board_url() lets you build up a board from individual urls. This is
pin_get() will be cached - they'll
only re-download the data if it's changed from the last time you downloaded
it (using the tools of
You'll also be protected from the vagaries of the internet; if a fresh
download fails, you'll get the previously cached result with a warning.
board_url() is read only and does not currently support versions.
A named character vector of URLs If the URL ends in a
Cache path. Every board requires a local cache to avoid downloading files multiple times. The default stores in a standard cache location for your operating system, but you can override if needed.
If the pin fails to download, is it ok to
use the last cached version? Defaults to
1 2 3 4 5 6 7 8 9 10 11 12
github_raw <- "https://raw.githubusercontent.com/" board <- board_url(c( files = paste0(github_raw, "rstudio/pins/master/tests/testthat/pin-files/"), rds = paste0(github_raw, "rstudio/pins/master/tests/testthat/pin-rds/"), raw = paste0(github_raw, "rstudio/pins/master/tests/testthat/pin-files/first.txt") )) board %>% pin_read("rds") board %>% pin_browse("rds", local = TRUE) board %>% pin_download("files") board %>% pin_download("raw")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.