This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sometimes during repeat calls to a function, it may be helpful if arguments used in a | |
# previous call are passed as a list to the function in subsequent calls, to be | |
# superseded if individual arguments of the same name are given. | |
# | |
# The following function prioritises specified arguments (including ... arguments) over an | |
# argument list, and the argument list over default values. | |
handle_args <- function(arg1 = 1, arg2 = 2, arglist = list(), ...) { | |
# Copy default arguments |