File: utils.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 (24 lines) | stat: -rw-r--r-- 540 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
# check_is_named_list() works

    Code
      user_facing_function(NULL)
    Condition
      Error in `check_is_named_list()`:
      x `somevar` must be a list, not NULL.

---

    Code
      user_facing_function(c(a = "a", b = "b"))
    Condition
      Error in `check_is_named_list()`:
      x `somevar` must be a list, not a character vector.

---

    Code
      user_facing_function(list("a", b = 2))
    Condition
      Error in `check_is_named_list()`:
      x Names of `somevar` must be non-missing, non-empty, and non-duplicated.