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 the latest verion of R installed and running.

There are two steps to install MARK and RMark under Linux:

Step (1) - installing MARK executable

  • download the g'zip'd tarball containing the 32- and 64-bit builds of the MARK numerical routines executable - here
  • extract the file (mark.32 or mark.64) that is suitable for your machine/distribution
  • rename the file 'mark' (i.e, drop the .32 or .64 filetype), copy it to a directory in the path (typically, /usr/local/bin), and make it executable
  • make sure it runs by typing ./mark from the command line



Step (2) - 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 - as if being 'free' wasn't enough). 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.

Misc notes...

The Linux-compiled version of MARK was built using dynamic (shared) libraries. There is some chance that the libraries on your distribution may be in different locations than the MARK executable is expecting. You can LDD the MARK executable to find out what it 'requires', then tweak the LD_LIBRARY_PATH as needed (if the preceding sentence doesn't make sense to you, you should either quit now, ask a local 'Linux' guru for help, or go back to some 'easier' operating system like Windows or OS/X... ;-)