There are a variety of ways to run #RStats code: https://www.neilwright.uk/notes/run-r-code

Do you have a favourite? Or a useful way I've missed in this list?

7 ways to run R code

Thank you for the replies. I've updated the list to 12 ways.