Type code in RGui console: Create script: Type the code in script editor : Save the script code : Load script code to run/execute : It will ask to select the file to load : Output looks like this ; Download as PDF Related posts: Introduction to R Installing R in Windows R Console R Commands and Syntax Packages and Libraries in R Install and load a package in R Help in R