write_HPC_shell_R: Make HPCC Shell Files to Run R Scripts for Prep and Run...

Description Usage Arguments Examples

View source: R/write_runScripts.R

Description

This function makes a shell script to execute the 03.00_salusXdb_experimentWriter script for MSU's High Performance Computing Cluster -HPCC-. This bash script loads the proper version of R, sets the R library path, and executes the r file. The R file -experiment writer- writes the salus xdb.xml's for the run based on the run parameter file and the set of unique experiments.

Usage

1
2
write_HPC_shell_R(outDir, runname, scriptTypeName, hpcBaseDir, scriptName,
  walltime, memory)

Arguments

outDir

Directory in which to save the output shell sh file. the sh filename is pulled from run filename

runname

Run name for the set of files

scriptTypeName

appended to filename

hpcBaseDir

Directory on HPCC within which are subdirectories for each run

scriptName

Name of R script to run

walltime

For HPCC - how long you expect the job to run. Format HH:MM:SS

memory

For HPCC - how much memory the job will need. ie, '2gb' or '2000mb'

Examples

1
#set variables

jdeines/salustools documentation built on May 29, 2019, 1:03 a.m.