R/private_mc_function.R

Defines functions mc_function

mc_function <- function(name) {
  
  if(missing(name)) name <- ""
  id <- which(names(opt("mc_fun")) == name)
  
  if (length(id) == 1) {
    return(opt("mc_fun")[id])
  }
  
  stop("Unknown function. Valid values are: ",
       paste(names(opt("mc_fun")), collapse = ", "))
  
}

Try the scan package in your browser

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

scan documentation built on Aug. 8, 2023, 5:07 p.m.