Multiple R commands in a single string for str2lang()?

string_to_execute = 'a = 1; b = 2'

# 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.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.