tests/testthat/test-legacy_board.R

test_that("good errors when use modern board with legacy api", {
  expect_snapshot(error = TRUE, {
    board <- board_temp()
    pin(mtcars, "mtcars", board = board)
    pin_get("mtcars", board = board)
    pin_find("mtcars", board = board)
    pin_versions("mtcars", board)
    board_browse(board)
  })

  expect_equal(2 * 2, 4)
})

Try the pins package in your browser

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

pins documentation built on Nov. 10, 2023, 1:06 a.m.