This page is for MS Windows only!!
This is not a necessary process for running a R, but is required
when you want to build packages or install from source code on MS Windows.
---
For R version after than 2.0
There is a useful package for the following process
including almost everything you need to build a package.
See the page of
Rtools for details.
- Modify Batch File
Modify the environment variable to the correct path and will be as the following,
```
@ECHO OFF
DOSKEY
SET PROMPT=$g
SET R_HOME=C:\PROGRA~1\R\R-2.7.1
SET RHOME=%R_HOME%
SET TOOLS_HOME=C:\PROGRA~1\RTOOLS\BIN
SET MINGW_HOME=C:\PROGRA~1\RTOOLS\MINGW
SET PERL_HOME=C:\PERL
SET CHM_HOME=C:\PROGRA~1\HTMLHE~1
SET PATH=%TOOLS_HOME%;%MINGW_HOME%\BIN;%PERL_HOME%\BIN;%R_HOME%\BIN;%CHM_HOME%;%PATH%
```
---
For R version earlier than 2.0
The following contains the basic requirement to construct the environment
for building a package.
- Reference
See the page Building R for Windows
or here
(my mirror here).
- Download
The necessary software are as the following,
1. Unix Toolkit:
From www.stats.ox.ac.uk
with source
(my mirror here).
2. Windows Perl:
Active Perl
with version ActivePerl-5.8.4.810-MSWin32-x86
(my mirror here).
3. C Compiler:
MinGW32
with version MinGW-3.1.0-1.exe
(my mirror here).
4. Batch:
The batch file for Windows "SET_BUILD.BAT".
For MS Windows 95, you have to have the msvcrt.exe
(my mirror here).
- Install
1. Unix Toolkit: unzip all files to C:\PROGRA~1\TOOLS\
2. Windows Perl: unzip the ActivePerl-5.8.4.810-MSWin32-x86.zip and copy the extracted
Perl subdirectory to C:\PROGRA~1\PERL\
3. C Compiler: click the MinGW-3.1.0-1.exe and install to C:\PROGRA~1\MinGW\
4. Batch: copy to C:\PROGRA~1\R\
For Windows 95, click the msvcrt.exe and move all extracted files to C:\WINDOWS\SYSTEM\
- Modify Batch File
Modify the environment variable to the correct path and will be as the following,
```
@ECHO OFF
DOSKEY
SET PROMPT=$g
SET R_HOME=C:\PROGRA~1\R\RW1071
SET RHOME=%R_HOME%
SET TOOLS_HOME=C:\PROGRA~1\TOOLS
SET MINGW_HOME=C:\PROGRA~1\MINGW
SET PERL_HOME=C:\PROGRA~1\PERL
SET PATH=%TOOLS_HOME%;%MINGW_HOME%\BIN;%PERL_HOME%\BIN
```
---