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 0dc1efc commit b2cd771Copy full SHA for b2cd771
src/library/base/R/unlist.R
@@ -1,7 +1,7 @@
1
# File src/library/base/R/unlist.R
2
# Part of the R package, https://www.R-project.org
3
#
4
-# Copyright (C) 1995-2018 The R Core Team
+# Copyright (C) 1995-2025 The R Core Team
5
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
@@ -18,6 +18,8 @@
18
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")
23
if(.Internal(islistfactor(x, recursive))) {
24
URapply <-
25
if(recursive) # use rapply()
0 commit comments