See the original description in base::str2lang.

str2lang(s)

Examples

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

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