Skip to contents

Stores a session-global thread count that MarchR functions read by default via get_threads(). Is only applied by default to functions that gain from multi-threading (e.g. svd() in LSI()). Overriden by a function's own threads argument.

Usage

set_threads(threads = floor(parallel::detectCores()/2), force = FALSE)

Arguments

threads

(integer) Thread count. Default floor(detectCores()/2).

force

(logical) Allow setting at/above detectCores()-1. Default FALSE.

Value

NULL