In my package I have a code style test so it calls lint_package() from the tests/testthat folder.
The new logic in find_package fails at finding the root of the package ( I guess from this commit 3009505 )
so If I call lint_package from a deeper level than 2 it fails at finding the package actually...
test_that("check that package has code style", {
skip_on_covr()
lints <- lintr::lint_package()
....
}
The above code warns/fails with:
Warning message:
In lintr::lint_package() :
Didn't find any R package searching upwards from '.'.