tests/testthat/test-8-bin-delete.R

skip_on_cran()

test_that("delete bin", {
  skip_on_os("windows")

  expect_true(bin_delete(BIN))
})

test_that("delete bin that doesn't exist", {
  skip_on_os("windows")

  url <- file.path(base_url(), BIN)
  expect_false(bin_delete(url))
})

Try the filebin package in your browser

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

filebin documentation built on Sept. 2, 2023, 9:07 a.m.