R/evalText.R

Defines functions evalText

Documented in evalText

evalText <- function(text, where = .GlobalEnv) {
   for(expr in parse(text = text))
     value <- eval(expr, envir = where)
   value
}

Try the SoDA package in your browser

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

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.