getMcCores: Reads out SHELL environment variable 'MCCORES' and returns it...

View source: R/utils.R

getMcCoresR Documentation

Reads out SHELL environment variable MCCORES and returns it as integer. If the environment variable is not set, the value returned by detectCores() is used as default.

Description

Reads out SHELL environment variable MCCORES and returns it as integer. If the environment variable is not set, the value returned by detectCores() is used as default.

Usage

getMcCores(env.var = "MCCORES")

Arguments

env.var

The name of the SHELL environment variable to read out. Default is MCCORES.

Value

An integer, either the value of the environment variable MCCORES or the default value returned by parallel::detectCores().


asishallab/GeneFamilies documentation built on May 22, 2023, 11:30 a.m.