tests/testthat/test-here.R

local_project()

test_that("here() finds files", {
  expect_true(file.exists(here("analysis/report.Rmd")))
})

Try the here package in your browser

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

here documentation built on Jan. 13, 2021, 12:17 p.m.