# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
str2expression <- getFromNamespace("str2expression", "backports")
str2expression("x[3] <- 1+4")
Run the code above in your browser using DataLab