-- DavidReitter - 24 Jan 2006

R can only run in the Vanilla universe. Linking R against the Condor libraries is currently not going to be fruitful. (See also recent messages on the R mailing list.)

Here is a simple sample job description which runs R out of a local installation in a home directory. Using the global installation should work fine as well provided its version is suitable. Note that the below example will start 10 different jobs, loading prepared datafiles (.0 - ..9) to do its job.

  Universe = vanilla

  Executable     = /home/user/usr/bin/R

  Arguments      = --no-save --no-restore --args --paraphrase=/home/user/PhD/paraphrase/paraphrase.data.250k.$(Process) --maptask=/home/user/PhD/maptask/maptask.data.250k.$(Process)

  Requirements   = Memory >= 1500

  Error   = /home/user/PhD/stats/joined/250k.err.$(Process)                                                
  Input   = /home/user/PhD/stats/stats2.R                          
  Output  = /home/user/PhD/stats/joined/250k.out.$(Process)                                                
  Log = /home/user/PhD/stats/joined-500k.condor.log.$(Process)

  Initialdir = /home/user

  Queue 10 

The S (R) code below (from stats2.R) reads a command line argument --maptask= given to R and initializes a variable file.mapt from it:

file.mapt =  sub('--maptask=','', grep("maptask=.*", commandArgs(), value=TRUE))
Topic revision: r1 - 24 Jan 2006 - 23:17:29 - DavidReitter
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
This Wiki uses Cookies