Overview

The RMark library can be compiled and run under recent distrubutions of the GNU/Linux operating system (hereafter, Linux). There are several reasons that doing so might be of interest. First, Linux is a very stable operating system, and RMark and mark.exe under Linux is less "crash-prone" than running RMark and MARK under Windows. Second, and most importantly, some of the inherent efficiencies in Linux make running RMark under Linux faster than under Windows (all other things being equal).

   The following assumes you have a basic familiarity with Linux, and have at least sudo access to specific directories (if you don't know what that is, then you should probably stop now...). It also assumes that the machine you're planning on using has R (2.6x) installed and running.


Installing RMark under Linux...

Here are the basic steps...

  • You need to build the R package for Linux. Extract the package source file from MarkSource.zip. It should have the following directory structure.

    RMark
    R
    chm
    man
    data
    src

  • Change directory to the directory containing the RMark subdirectory. Enter

    R CMD INSTALL RMark

    and it will build and install the package to the default library directory. If for some reason you do not have administrative privilege to that directory, create another directory for packages. We'll call it RLib. Then use the following:

    R CMD INSTALL -l RLib RMark

    and the package will be installed into RLib. If you have to use this approach then to load the package you'll need to use

    library(RMark,lib.loc="ddddd/RLib")

    where dddd is the directory structure leading to RLib.

  • For the Linux version of RMark, it expects the executable for mark to be named mark and to be found in the search path. The variable MarkPath is ignored.

    If you store it some place not in your path you can create a symbolic link(Linux is a wonderful thing). For example, you can install the executable for Mark where you want (e.g. ~/Programmes/MARK/ ) and in /usr/local/bin you'd type

    ln -s ~/Programmes/MARK/mark mark

    One other setting is the name of the editor/file viewer. The default is pico. If you want to use something other than pico or your machine does not have pico. Simply type MarkViewer="myviewer" in your R session before using RMark, where myviewer is the name of an editor or file viewer that is in your path. You can put the library call and the MarkViewer assignment into a function .First() and they will be run each time you start the R session in that directory.

  • Finally, you'll need a version of mark.exe compiled for Linux. 32- and 64-bit versions have been compiled, and are available by submitting a request. Be sure to include as much information about your machine as possible. The easiest thing to do is to run cat /proc/cpuinfo, and include the output in your request.