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:

navigate-to-r-core.png

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

navigate-to-the-command-line.png

Click on, rather run, the application:

a-launched-command-prompt.png

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:

change-drive-in-command-prompt.png

Press the Enter key to make the drive change:

changed-drive-in-command-prompt.png

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

cd "C:\Program Files\R\R-3.3.2\bin"
navigate-to-r-in-command-prompt.png

Commit the drive by change pressing the Enter key:

navigate-to-r-bin-directory-in-command-prompt.png

To launch the R console application type:

R
launch-r-in-command-prompt.png

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:

9.png

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.

1.png

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

2.png

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.

3.png

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

4.png