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

detectHPC()

Value

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

Note

Currently supports detection of Slurm or LSF.

See also

  • Sys.getenv.

  • Sys.info.

  • R.version.

  • .Platform.

Examples

detectHPC()
#> [1] FALSE