Setup for Running Bio3D Functions using Multiple CPU Cores

Usage

setup.ncore(ncore, bigmem = FALSE)

Arguments

ncore
User set (or default) value of ‘ncore’.
bigmem
logical, if TRUE also check the availability of ‘bigmemory’ package.

Description

Internally used in parallelized Bio3D functions.

Details

Check packages and set correct value of ‘ncore’.

Value

The actual value of ‘ncore’.

Examples

setup.ncore(NULL)
[1] 12
setup.ncore(1)
[1] 1
# setup.ncore(2)