module: Interface to allow full use of the Environment Modules system...

Description Usage Arguments Author(s) Examples

View source: R/module.R

Description

The function module enables use of the Environment Modules system (http://modules.sourceforge.net/) from within the R environment. By default the user's login shell environment (ie. bash -l) will be used to initialize the current session. The module function can also; load or unload specific software, list all the loaded software within the current session, and list all the applications available for loading from the module system. Lastly, the module function can remove all loaded software from the current session.

Usage

1
module(action_type, module_name="")

Arguments

action_type

Name of the action to be executed as character vector. The following switches are accepted: avail, list, init, load, unload, and clear.

module_name

Name of software to load as character vector.

Author(s)

Jordan Hayes and Thomas Girke

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
## List all available software from the module system
module("avail")

## List loaded software in the current session
module("list")

## Example for loading a software into the shell environment
module("load","tophat") 

## Example for removing software from the shell environment
module("unload", "tophat")

## Clear all of the software from the shell's initialization files
module("clear")

## List and load all the software loaded in users default login shell into the current session (default)
module("init")

## End(Not run)

systemPipeR documentation built on Jan. 26, 2021, 2 a.m.