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.
@neilstats render a Quarto doc (or knit an R Markdown doc).
@neilstats select/copy in editor; paste at R prompt.
@neilstats I’ve been finding productivity in running #R code in a literate programming style with #Quarto. Also, wanting to explore the new #Jupyter notebooks support in #Positron to see how an #EDA workflow might look like.
@neilstats `rig run` to be able to specify the R version to run