File: proj.md

package info (click to toggle)
r-cran-usethis 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,228 kB
  • sloc: sh: 26; makefile: 17; cpp: 6; ansic: 3
file content (33 lines) | stat: -rw-r--r-- 779 bytes parent folder | download
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.