R/backports.R

Defines functions str2lang str2expression

# added in R 3.6
str2expression <- function(text) {
  parse(text = text, keep.source = FALSE)
}
str2lang <- function(text) {
  str2expression(text)[[1]]
}
rstudio-education/grader documentation built on July 6, 2023, 8:48 a.m.