R is amazing platform which many numerical methods and analysis options available
This article explains how to use R in Windows using Cygwin
Reason for Cygwin, it has X11 and Cygwin-X with amazing setup selection tools and many libraries
Below are the installation steps
Step 1: Download and install Cygwin and dependencies
64 Bit Windows: https://www.cygwin.com/setup-x86_64.exe
32 Bit Windows: https://www.cygwin.com/setup-x86.exe
Double click the setup will launch
Press Next in all the windows
For Download Site choose
Pressing next will show software selection window as shown below
Step 2: Install R
Choose Category View
Expand Math as shown below
Scroll down and choose R 3.6.0-1 as show below
Then press next and next - R will be installed
Step 3: Check R
open cygwin terminal and type below command
You should get below output or similar output
R version 3.6.0 (2019-04-26) -- "Planting of a Tree" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-pc-cygwin (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License versions 2 or 3. For more information about these matters see https://www.gnu.org/licenses/.
Step 4: Hello World R
create a file with below code and save with "R" extension, "test.R"
myString <- "Hello, World!" print ( myString)
then issue below command
you will get the below output
 "Hello, World!"
Thats all, your R is ready for development!!