1) Navigate to and launch the R command line.

This Blog entry is from the Getting Started in R section in Learn R.

In this blog post a procedure is provided to explain the process of launching R from the command line. It is unusual to interact with R from the command line, but it serves to explain the concept of R being a command led interpreted language. In subsequent Blog entries, RStudio will be a wrapper around R and make for a much more enjoyable experience.

To launch the R Core Command Line software, start by launching the command prompt.  The quickest way to launch the command prompt is to click the Start button firstly:


Then in the run \ search bar type CMD,  which will suggest the appropriate application:


Click on, rather run, the application:


It is unlikely that the Command Prompt will be in the correct directory to run R.  Switch to the C: drive, which is where all installed programs tend to reside, by typing:


Press the Enter key to make the drive change:


To navigate to the directory containing the R command line type:

cd "C:\Program Files\R\R-3.3.2\bin"

Commit the drive by change pressing the Enter key:


To launch the R console application type:


Invoke R Core by pressing the Enter key. Upon successful launch of the R Core Command Line Interface, introductory text will be displayed with a chevron (i.e >) denoting the command line input awaiting with a flashing cursor:


Introduction to Getting Started in R

This Blog entry is from the Getting Started in R section in Learn R.

R is the software package that is the primary focus of this series of Blog entries. For this section, R is two separate software packages and installs.

Core R is available from https://www.r-project.org/ or by using a mirror such as http://cloud.r-project.org. Core R is created and published by the R Core Development Team.  Fundamentally the view that Core R is a command line only tool, used for production deployments only, should be adopted.  R Core \ R Command Line is used very little in this training course and is predominantly shown as a precursor to RStudio Console. 

Once R Core is downloaded and installed, the command line application is available in C:\Program Files\R\R-3.3.2\bin\titled R.exe although navigation to and invocation of the application is detailed in one of the first Blog entries.


In this example, the latest version of R for Windows has been installed with the default settings.


RStudio is a feature rich Integrated Development Environment (so-called IDE) that improves productivity in creating R Scripts, although in production the execution of these scripts might well fall to the core installation. 

The software can be downloaded from https://www.rstudio.com/products/RStudio/ and is free, although there are commercial editions.


As with R Core, the defaults have been left unchanged during the installation.