tests/testthat/test-file_exists.R

test_that("basic behaviour is correct", {
  expect_true(file_exists("test-file_exists.R"))
  expect_false(file_exists("NOT HERE"))
})

Try the fs package in your browser

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

fs documentation built on July 26, 2023, 5:47 p.m.