About me | pbdR Tech | HPSC | Phyloclustering | R_note |

R_note -- The Exploration of Statistical Software R (統計軟體 R 深度歷險)
About R_note
Reference
MS Windows

Batch jobs
Function
Data/MySQL
Plot
String/Parse

Remark Lines
Classes/S3
S4 Methods
Batch more
Environment

Good Coding
Fast Loop
LAM/MPI/Rmpi
Recursion

PHP Call R
Basic C
R Call Fortran/C
R Call GSL
C Call R API
C Call R Objects
Standalone

Make Packages
C Pointer
Debug




Section: MS Windows

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 everythings you need to build a package. See the page Rtools for detail.
  • 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. Unin 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
    

[ Go to top ]

Maintained: Wei-Chen Chen
E-Mail: wccsnow @ gmail.com
Last Revised: Dec 12 2016, 09:44 (CST Taipei, Taiwan)
Created: Oct 06 2003
free counters Best Resolution
IE6.0
1280x1024
small font