File: package.md

package info (click to toggle)
r-cran-devtools 2.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,340 kB
  • sloc: sh: 15; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 677 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
# package_file() gives useful errors

    Code
      package_file(path = 1)
    Condition
      Error in `package_file()`:
      ! `path` must be a string.
    Code
      package_file(path = "doesntexist")
    Condition
      Error in `package_file()`:
      ! 'doesntexist' is not a directory.
    Code
      package_file(path = "/")
    Condition
      Error in `package_file()`:
      ! Could not find package root.
      i Is '/' inside a package?

# create argument is deprecated

    Code
      x <- as.package(path, create = TRUE)
    Condition
      Warning:
      The `create` argument of `as.package()` is deprecated as of devtools 2.5.0.