Skip to contents

Returns the R code that would execute a given module command

Usage

get_module_code(args, env = character())

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"))

env

A character vector containing KEY=VALUE entries not as a named vector defining additional environment variables to set

Value

An expression object containing the R code produced by this command

Examples

get_module_code("purge") |> eval()