This function extracts the default parameters from a function and replaces them with user-provided values where applicable.
/!\ It ignore params without default, or with a NULL default
Usage
process_params(fun, ...)
Arguments
fun
A function whose parameters are to be processed.
...
User-defined arguments to override the function's default parameters.