If nbrOfWorkers() returns +Inf, then we get errors like:
✖ 36. plan() - workers=<numeric> (1 test) (2ms)
✖ lazy=FALSE, globals=TRUE, stdout=TRUE
Error of class ‘simpleError’ with message:
invalid format '%d'; use format %f, %e, %g or %a for numeric objects
Call:
sprintf("Number of workers: %d\n", n)
Output:
Issue
If
nbrOfWorkers()
returns +Inf, then we get errors like: