Since there are cases where we get false RNG warnings when using downstream packages, e.g.
doFuture::registerDoFuture()
BiocParallel::register(BiocParallel::DoparParam())
y <- BiocParallel::bplapply(1:2, rnorm)
Warning message:
UNRELIABLE VALUE: One of the foreach() iterations ('doFuture-1') unexpectedly generated random numbers ...
Until we can figure out a non-hacky way for doFuture to be BiocParallel-aware, the workaround is to disable this check by setting:
options(future.rng.onMisuse = "ignore")
However, this will disable these checks throughout the future ecosystem, which is not good.
A slightly better solution would be to disable such warnings only for the doFuture adaptor. We could simply introduce support for:
Since there are cases where we get false RNG warnings when using downstream packages, e.g.
Until we can figure out a non-hacky way for doFuture to be BiocParallel-aware, the workaround is to disable this check by setting:
However, this will disable these checks throughout the future ecosystem, which is not good.
A slightly better solution would be to disable such warnings only for the doFuture adaptor. We could simply introduce support for:
where the default is:
and have that temporarily override whatever option 'future.rng.onMisuse' declares, e.g.