R functions to run external software interactively or to submit to queuing system of a compute cluster