I want to mark the whole code in R Studio and run it instead of execute every single line of code one by one. But it appears that some arguments are executed before others that appear in the Syntax before. As a result, some objects are not found that are referred to in an argument because the line of code was executed before the line in which the object is defined.

How can I avoid this and still not have to run every single line manually?
Thanks a lot!

New contributor

Stine Berlin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1