From the “File” menu, select “New File,” then choose “R Script.”
You can also create the script from the “new file” button in the Files pane.
A new pane appears. This is the Source pane, where we write and edit code and documents. This pane is only present if there are files open in the editor.
