Internally used in parallelized Bio3D functions.

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.

Details

Check packages and set correct value of ‘ncore’.

Value

The actual value of ‘ncore’.

Examples

setup.ncore(NULL)
#> [1] 4
setup.ncore(1)
#> [1] 1
# setup.ncore(2)