names(list(...)) will provide you with a character vector containing the names of the provided arguments that were absorbed ... :
plotter <- function(...) {names(list(...))} plotter(x=1:4, y=11:14)
Alternatively, if you want to pass unnamed arguments, try this (which extends @baptiste's answer is now deleted):
plotter <- function(..., pch=16, col="red") { nms <- setdiff(as.character(match.call(expand.dots=TRUE)), as.character(match.call(expand.dots=FALSE))) nms } x <- 1:4 y <- 1:14 plotter(x, y, col="green")
source share