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 333885d commit 4bf3d05Copy full SHA for 4bf3d05
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(length(recursive) != 1L) stop("'recursive' must be of length 1")
23
+ if(is.na(recursive)) stop("'recursive' is NA")
24
if(.Internal(islistfactor(x, recursive))) {
25
URapply <-
26
if(recursive) # use rapply()
0 commit comments