I was an user of tinnR as script editor for R. With that editor, when running a selection of multiple lines at once, the behaviour was the following: