tests/testthat/_snaps/pin-upload-download.md

pin_upload generated useful messages

Code
  pin_upload(board, 1:10)
Error <rlang_error>
  `path` must be a character vector
Code
  pin_upload(board, "this-path-doesn't-exist")
Error <rlang_error>
  All elements of `path` must exist
Code
  path <- fs::file_touch(fs::path_temp("test.txt"))
  pin_upload(board, path)
Message <message>
  Guessing `name = 'test.txt'`
  Creating new version '20120304T050607Z-ef46d'

can pin file called data.txt

Code
  pin_upload(board, fs::path(path, "data.txt"))
Error <rlang_error>
  Can pin file called `data.txt`

informative error for legacy boards

Code
  board <- legacy_temp()
  board %>% pin_upload(1:10, "x")
Error <rlang_error>
  Use `pin()` with this board, not `pin_upload()`
Code
  board %>% pin_download("x")
Error <rlang_error>
  Use `pin_get()` with this board, not `pin_download()`


Try the pins package in your browser

Any scripts or data that you put into this service are public.

pins documentation built on Oct. 2, 2021, 5:06 p.m.