Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Find tests or tests/testthat subdirectory #14
so that it works from Rstudio, testthat tests, and R CMD check.
I think this needs two changes:
Usage would be:
find_test_file <- has_parent_dir("tests/testthat")$make_fix_file(c("tests/testthat", ""))
Documented at https://krlmlr.github.io/rprojroot/articles/rprojroot.html#testthat-files, does it work for you?