R/get_args.R

Defines functions print_dots

Documented in print_dots

#' Print the ... argument
#' 
#' A really simple function that explores what happens when use ...
#' @param ... The ... argument from the function to be analysed
#' @export
print_dots = function(...) {
    dots_list = eval(substitute(alist(...)))
    dots_vec = unlist(dots_list)
    for (n in names(dots_vec))
      message(n, " = ", dots_vec[n])
    invisible(dots_vec)
}
jr-packages/jrOOP documentation built on Dec. 7, 2020, 5:15 p.m.