Skip to contents

Detect if R is running on a high-performance computing (HPC) cluster.

Usage

detectHpc()

Value

character(1) or logical(1). Workload manager (scheduler) name if HPC is detected (e.g. "SLURM" or "LSF"), otherwise FALSE.

Details

Currently supports detection of Slurm or LSF.

Note

Updated 2021-08-13.

See also

  • Sys.getenv.

  • Sys.info.

  • R.version.

  • .Platform.

Examples

detectHpc()
#> [1] FALSE