See the original description in base::str2expression.

str2expression(text)

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
str2expression <- getFromNamespace("str2expression", "backports")

str2expression("x[3] <- 1+4")
#> expression(x[3] <- 1 + 4)