Closed olivroy closed 4 months ago
You can test this out with usethis.
Its file tests/testthat/helper.R contains proj_find() which is an internal function.
proj_find()
devtools::run_examples(pkg = "~/Documents/rrr-forks/usethis/") #> ℹ Updating usethis documentation #> ℹ Loading usethis #> ── Running 91 example files ───────────────────────────────────────── usethis ── #> ℹ Loading usethis #> Error in `FUN()`: #> ! In path: "~/rrr-forks/usethis/tests/testthat/helper.R" #> Caused by error in `proj_find()`: #> ! could not find function "proj_find"
In the backtrace, I see
8. └─testthat::source_dir(path, "^helper.*\\.[rR]$", env = env, wrap = FALSE)
Note that usethis:::proj_find() makes it work.
usethis:::proj_find()
You can test this out with usethis.
Its file tests/testthat/helper.R contains
proj_find()
which is an internal function.In the backtrace, I see
Note that
usethis:::proj_find()
makes it work.