Skip to contents

Runs modulecmd with some arguments

Usage

run_modulecmd(args, ...)

Arguments

args

A character vector defining the module command. You do not need to include the word "module". For example module load zeromq in bash could be converted to run_modulecmd(c("load", "zeromq"))

...

Arguments to forward to base::system2()

Value

A character scalar containing the command's output

Details

This is a low-level unexported function because users are encouraged to use the higher level functions such as module_load() The shell is harcoded as "r" because (surprise!) that's the language you are using right now