Source File

File > New File > R Script

sourcefile1's photo

Run = Execute the code on the line where the cursor is

sourcefile2's photo

Source = Execute all the code of the script file

sourcefile3's photo