dots1_is_pkglist {librarian} | R Documentation |
Is the 1st 'dots' arg a character vector with length > 1?
Description
Is the 1st 'dots' arg a character vector with length > 1?
Usage
dots1_is_pkglist(...)
Arguments
... |
(Dots) |
Value
TRUE
if ..1
is a vector or list with length > 1.
Examples
## 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)
[Package librarian version 1.8.1 Index]