Learn R Programming

librarian (version 1.8.1)

dots1_is_pkglist: 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

Run this code
# 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
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab