R script
An R script is a document that can hold your code, comments, and outputs

Create a new R script by going to File > New File > R Script
Create a new R script by clicking New File icon in the toolbar and selecting R Script
Run button in the toolbarCtrl + Enter (Windows) or Cmd + Enter (Mac)Run button in the toolbarCtrl + Enter (Windows) or Cmd + Enter (Mac)File > Save or Save AsSave icon in the toolbarSave icon in the EditorR Scripts