Assuming your script is named "myScript.r", you can use something like source("myScript.r", echo = TRUE) to run the entire script.
source("myScript.r", echo = TRUE)
2.1m questions
2.1m answers
60 comments
57.0k users