string_to_execute = 'a = 1; b = 2'
str2lang(string_to_execute)
# Desired equivalent result:
# a = 1
# b = 2
There doesn't seem to be an example in the documentation. Is there a way?
I also tried to see if c()
or list()
would be acceptable, but then it would not accept '=' in the string.