We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fafebc1 commit 2902859Copy full SHA for 2902859
src/library/base/R/unlist.R
@@ -19,7 +19,8 @@
19
unlist <- function(x, recursive=TRUE, use.names=TRUE)
20
{
21
## for better error messages (islistfactor is not viisble)
22
- if(length(recursive) != 1L) stop("'recursive' must be of length 1")
+ if(is.function(recursive) || length(recursive) != 1L)
23
+ stop("'recursive' must be a length-1 vector")
24
if(is.na(recursive)) stop("'recursive' is NA")
25
if(.Internal(islistfactor(x, recursive))) {
26
URapply <-
0 commit comments