Installation

From the R command prompt:

For the CRAN production version:


For the R-Forge development (daily build) version:

Type install.packages("packagename",repos="http://R-Forge.R-project.org") from the R prompt. 


Manually:

Download MSToolkit from R-Forge. Save the zip file to the desktop.

The MSToolkit package is now installed on your local instance of R. Full instructions for use, and HELP files are included in the package. These are accessible using R’s “Help” menu.

R settings

If the package fails to load every time you start R you may need to change your RProfile and set it to load up the MSToolkit package every time you invoke R. To do this add the following line to your RProfile (or RProfile.Site) file in the \etc directory of your R program (e.g. In Windows this may be C:\program files\R\R-2.9.1\etc\. In Mac OSX this will be \library\Frameworks\R.framework\Versions\2.9\). This file MAY NOT EXIST in this directory and you may need to create a file with the following lines of code:

.First <- function(){

  require ("MSToolkit")}  


If you have a .First function already set up, then simply add the line require("MSToolkit").

SAS and LSF GRID settings

Before using SAS as an analytical engine or using an LSF GRID environment, it is important to set up preferences for the location of R and the SAS executable (if required). A file ECTD.ini is provided in the top directory of the library which should contain the following rows: 

# Instructions to set up environmental variables

# This option allows the setting of the R execution binary on a Unix grid

# Sys.setenv("RLSF_UNIX"=".")

# This option allows the setting of the R execution binary on a Linux grid

# Sys.setenv("RLSF_LINUX"=".")  

# This option allows the setting of the SAS execution path on a Unix machine

# Sys.setenv("SASPATH_UNIX"=".")

# This option allows the setting of the SAS execution path on a Windows machine

# Sys.setenv("SASPATH_WIN"="C:\\Program Files\\SAS Institute\\SAS\\V8\\sas.exe")