Skip to contents

Evaluates a module command, and returns the text output.

Usage

get_module_output(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

A character vector with class "cli_ansi_string".

Examples

get_module_output("list")
#> <cli_ansi_string>
#> [1] No Modulefiles Currently Loaded.