openpharma / simaerep

simulate adverse event reporting in clinical trials with the goal of detecting under-reporting sites.
https://openpharma.github.io/simaerep/
Other
21 stars 5 forks source link

Adress warning from future package #6

Closed erblast closed 3 years ago

erblast commented 3 years ago

Warning: UNRELIABLE VALUE: Future ('') unexpectedly generated random numbers without specifying argument '[future.]seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify argument '[future.]seed', e.g. 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer- CMRG method. To disable this check, use [future].seed=NULL, or set option 'future.rng.onMisuse' to "ignore".

erblast commented 3 years ago

multiprocessing should be set up outside of simaerep, presently future::plan(multiprocess) is embedded into the package code.

erblast commented 3 years ago

https://github.com/openpharma/simaerep/pull/9