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 Oct. 30, 2024, 9:06 a.m.