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 3b875e2 commit cc4aa7fCopy full SHA for cc4aa7f
src/library/methods/R/addedFunctions.R
@@ -1,7 +1,7 @@
1
# File src/library/methods/R/addedFunctions.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
@@ -138,8 +138,8 @@ hasArg <- function(name) {
138
if(is.na(match("...", fnames)))
139
FALSE
140
else {
141
- dotsCall <- eval(quote(substitute(list(...))), sys.parent())
142
- !is.na(match(aname, names(dotsCall)))
+ dotsNames <- eval(quote(...names()), sys.parent())
+ !is.na(match(aname, dotsNames))
143
}
144
145
else
0 commit comments