To create a new script select File | New File | R Script from the top navigation bar. A new blank script window will appear with the name Untitled1.
Once it appears you can start entering code!