tests/testthat/_snaps/proj.md

check_is_package() can reveal who's asking

Code
  check_is_package("foo()")
Condition
  Error in `check_is_package()`:
  i foo() (`?usethis::foo`) is designed to work with packages.
  x Project "{TESTPROJ}" is not an R package.

proj_path() errors with absolute paths

Code
  proj_path(c("/a", "b", "/c"))
Condition
  Error in `proj_path()`:
  x Paths must be relative to the active project, not absolute.
Code
  proj_path("/a", "b", "/c")
Condition
  Error in `proj_path()`:
  x Paths must be relative to the active project, not absolute.
Code
  proj_path("/a", c("b", "/c"))
Condition
  Error in `proj_path()`:
  x Paths must be relative to the active project, not absolute.


r-lib/usethis documentation built on March 20, 2024, 8:51 p.m.