Hi,

I was wondering what would be the best way to check if the three dots argument contains any arguments (i.e. does ... contain any arguments or not? )

#Example

test = function(x,y, ...)
{
   #Wanted R-Code
   # if(empty(...))
   #    do some calculation


   plot(x,y,...)

}

Thanks

Thomas Roth

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to