Instructions for installing an OpenMP enabled randomForestSRC
The randomForestSRC package implements OpenMP shared-memory parallel programming. However, the default installation given the source code, or the binary distributions posted on CRAN, will only execute serially. Instructions for installing an OpenMP enabled package are given below.
Building OpenMP binaries from the CRAN source package for Windows/Unix/Linux/Mac OS X
- This process requires that you have the appropriate toolset installed that will enable you to build R packages from source.
Please see the CRAN website for more information on the toolset and OS that you are using.
- Download the CRAN package source code randomForestSRC_X.x.x.tar.gz (make sure to download the source code: do not download the binary file).
- Open a console, navigate to the directory containing the
tarball, and untar it using the command:
> tar -xvf randomForestSRC_X.x.x.tar.gz
- This will create a directory structure with the root directory of the package named 'randomForestSRC'. Change into the root directory of the package using the command:
> cd randomForestSRC
- Run the autoconf command:
- Change back to your working directory:
> cd ..
- Install the package:
> R CMD INSTALL randomForestSRC
(ensure that you do not target the unmodified tarball, but
instead act on the directory structure you just modified.)
Pre-compiled binary for Windows/Mac OS X
- We have two OpenMP binaries available:
randomForestSRC_2.2.0.tgz (Mac OS X)
- After downloading the binary for your system, do ONE of the following:
Installing via the GUI. Using the R GUI, start the GUI. From the GUI, navigate to "Install Packages" (or similar) and select "From Local Archive" (or similar). Then navigate to the downloaded binary and click "Install".
Installing from the command line. Open a console, navigate to the downloaded binary and run the command
> R CMD INSTALL randomForestSRC_X.x.x_.<xxx>
where <xxx> is the appropriate version for your OS. See the CRAN website for more information on command line install options.