Returns the R code that would execute a given module command
Source:R/low_level.R
get_module_code.Rd
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 torun_modulecmd(c("load", "zeromq"))
- env
A character vector containing
KEY=VALUE
entries not as a named vector defining additional environment variables to set
Examples
get_module_code("purge") |> eval()