dots1_is_pkglist: Is the 1st 'dots' arg a character vector with length > 1?

Description Usage Arguments Value Examples

View source: R/process_dots.R

Description

Is the 1st 'dots' arg a character vector with length > 1?

Usage

1

Arguments

...

(Dots)

Value

TRUE if ..1 is a vector or list with length > 1.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
dots1_is_pkglist()

#> [1] FALSE

dots1_is_pkglist("hello", "hey", "hi")

#> [1] FALSE

dots1_is_pkglist(c("hello", "hey"), "hi")

#> [1] TRUE

dots1_is_pkglist(c(hello, hey), "hi")

#> [1] FALSE

# A common programming scenario:
pkg_list <- c("only_one_package")
dots1_is_pkglist(pkg_list)

#> [1] TRUE

## End(Not run)

librarian documentation built on July 12, 2021, 5:07 p.m.