R/getCall.R

#' @export
getCall <- function(MLCall){
  # Get the functionname
  bracketLocation <- gregexpr(pattern ='\\(',MLCall)[[1]][1]
  parentFunction  <- substr(MLCall,1,bracketLocation-1)
  
  # Parse the call to a function call
  functionCall    <- match.call(eval(parse(text=parentFunction)),parse(text=MLCall))
  
  # Return the function call
  return(functionCall)
}

Try the parallelML package in your browser

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

parallelML documentation built on May 2, 2019, 2:44 a.m.