tests/testthat/test-drive_rm.R

# ---- tests ----
test_that("drive_rm() copes with no input", {
  expect_identical(drive_rm(), dribble())
})

test_that("drive_rm() copes when there are no matching files", {
  skip_if_no_token()
  skip_if_offline()

  expect_identical(drive_rm("non-existent-file-name"), dribble())
})

Try the googledrive package in your browser

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

googledrive documentation built on July 9, 2023, 7:04 p.m.