Register a parallelization level
Package developers should call this function in their packages'
This enables the user to query available levels and bind parallelization to specific levels.
This is especially helpful for nested calls to
parallelMap, e.g. where
the inner call should be parallelized instead of the outer one.
To avoid name clashes, we encourage developers to always specify the argument
This will prefix the specified levels with the string containing the package name, e.g.
will register the level “foo.dummy” and users can start parallelization for this level with
parallelStart(<backend>, level = "parallelMap.dummy").
If you do not provide
package, the level names will be associated with category
“custom” and can there be later referred to with “custom.dummy”.
parallelRegisterLevels(package = "custom", levels)
character(1)] Name of your package. Default is “custom” (we are not in a package).
character(1)] Available levels that are used in the
parallelMapoperations of your package or code. If
packageis not missing, all levels will be prefixed with “[package].”.