Using the R Language in WINKS
The WINKS program provides a way to use statistical routines written in the R language. WINKS can run the R program, capture the output and display the results in the WINKS viewer. This reference shows how to create R code for WINKS. For a tutotial on how to create your own WINKS R code, click here
In order to run the R programs within WINKS, you must first install the free R program on your computer.
Installing R for WINKS
For basic information on runng R in Windows, click here.
To go to a download site (Berkley) click here to display the R for Windows page . To install R for the first time on your Windows PC, click on the base link on the R for Windows page.
Follow the instructions on this site to install R on your computer.
Preparing WINKS to run R Routines
Once you have installed R on your computer, do the following steps to set up WINKS to run R programs.
Step 1: In the WINKS SDA program select the following menu choices: Analyze, R Routines, R Properties/Setup/Help... The following dialog box is displayed:

Click on Browse, and from the open dialog box, find the R.exe program on your computer. It is usually in the Windows path
C:\Program Files\R\R-2.13.0\bin
where R-2.13.0 is the version of R you have installed.
It may be in a slightly different patch such as (depends on the version of Windows you have installed)
C:\Program Files (x86)\R\R-2.13.0\bin
Once you locate R.exe, hichlight it and click Open. You are prompted "Save specified R.exe location) Answer Yes.
Another dialog box will indicate "R properties saved." Click Ok and Continue.
Your WINKS is now set up to run WINKS R programs.
- End of Tutorial-