mixOmicsTeam / mixOmics

Development repository for the Bioconductor package 'mixOmics '
http://mixomics.org/
150 stars 51 forks source link

Control RNG in tests which utilise `BiocParallel` #279

Closed Max-Bladen closed 1 year ago

Max-Bladen commented 1 year ago

Is your feature request related to a problem? Please describe. Lack of RNG control in tests results in inconsistency across local and remote versions of the package

Describe the solution you'd like Simple solution which does not involve any adjustment to the package functions. Ideally, a single line in the test should control RNG (eg. like sed.seed(), but functional for parallelised computation)

Describe alternatives you've considered Setting the RNGversion() and using set.seed() does not work if the function calls any BiocParallel functions. Many of the tune.*() functions call bplapply()