tests/testthat/test-pin-delete.R

test_that("can delete multiple pins", {
  board <- board_temp()
  board %>% pin_write(1, "x")
  board %>% pin_write(2, "y")

  board %>% pin_delete(c("x", "y"))
  expect_equal(board %>% pin_list(), character())
})

Try the pins package in your browser

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

pins documentation built on June 10, 2025, 9:14 a.m.