R/threeDots.R

Defines functions threeDots

#' @title process ... arguments
#' @description extract values from '...' argument and  pass them to the scalars
#' @param name character. the name of the object of interest
#' @param ... arguments list
#' @return value of the object of interest
#' @author E. F. Haghish
#' @keywords Internal
#' @noRd
threeDots <- function(name, ..., default){
  dotList <- list(...)
  dotName <- names(dotList)
  if (name %in% dotName) {
    return(dotList[[name]])
  }
  else return(default)
}

Try the mlim package in your browser

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

mlim documentation built on Dec. 28, 2022, 2:33 a.m.