Description Usage Arguments Value
Functions used internally to setup the computational environment.
setupBackend
sets up a foreach backend given some specifications.
1 2 3 4 5 6 7 8 9 | setupBackend(spec, backend, optional = FALSE, verbose = FALSE)
setupSharedMemory(verbose)
setupTempDirectory(verbose, dir = getwd())
setupLibPaths(pkg = "NMF", verbose = FALSE)
setupRNG(seed, n, verbose = FALSE)
|
spec |
target parallel specification: either |
backend |
value from argument |
optional |
a logical that indicates if the specification must be fully satisfied, throwing an error if it is not, or if one can switch back to sequential, only outputting a verbose message. |
verbose |
logical or integer level of verbosity for message outputs. |
dir |
path where to create the temporary directory |
pkg |
package name whose path should be exported the workers. |
seed |
initial RNG seed specification |
n |
number of RNG seeds to generate |
Returns FALSE
if no foreach backend is to be used, NA
if the currently
registered backend is to be used, or, if this function call registered a new backend,
the previously registered backend as a foreach
object, so that it can be restored
after the computation is over.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.