R/y-pastenames.R

.pastenames <- function (...){
  if (nargs () == 1L & is.list (..1))
    dots <- ..1
  else
    dots <- list (...)

  names <- names (dots)
  names <- sapply (names,
                   function (x){
                     if (nchar (x) > 0L)
                       sprintf ("%s = ", x)
                     else
                       ""
                     })

  paste (names, dots, collapse = ", ", sep = "")
}

Try the hyperSpec package in your browser

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

hyperSpec documentation built on Sept. 13, 2021, 5:09 p.m.