1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
# 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.
|