functionabc <- function(api_key, URL, columnNames, globalParam, ...) {
  # code
}
My function currently takes in certain values through the ... (there can be 1 or more). It then stores all of them in a list. I now want to make globalParam optional with a default value of "" and I also want the option of having a parameter called valueslist which would be a list of lists. If the user specifies the value of the parameter valueslist, the user would not enter multiple values through the ...
This is how I want my function to look...
functionabc <- function(api_key, URL, columnNames, globalParam = "", valueslist = NULL, ...) {
  # code
}
How is this function supposed to be called and how do I deal with it? Also, do let me know if there's a better way to do what I am trying to do.
How do you not specify globalParam and valueslist, but pass in the ... set of arguments?