Skip to content

Commit cc4aa7f

Browse files
author
smeyer
committed
use ...names()
git-svn-id: https://svn.r-project.org/R/trunk@88431 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 3b875e2 commit cc4aa7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/library/methods/R/addedFunctions.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File src/library/methods/R/addedFunctions.R
22
# Part of the R package, https://www.R-project.org
33
#
4-
# Copyright (C) 1995-2018 The R Core Team
4+
# Copyright (C) 1995-2025 The R Core Team
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -138,8 +138,8 @@ hasArg <- function(name) {
138138
if(is.na(match("...", fnames)))
139139
FALSE
140140
else {
141-
dotsCall <- eval(quote(substitute(list(...))), sys.parent())
142-
!is.na(match(aname, names(dotsCall)))
141+
dotsNames <- eval(quote(...names()), sys.parent())
142+
!is.na(match(aname, dotsNames))
143143
}
144144
}
145145
else

0 commit comments

Comments
 (0)