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 May 29, 2024, 12:28 p.m.