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)
}

Try the nclRadvanced package in your browser

Any scripts or data that you put into this service are public.

nclRadvanced documentation built on May 2, 2019, 5:46 p.m.