Hi all, I found out that example code for my package GOfuncR yields a different result the first time it's executed, despite setting a seed. All the following executions are identical. It turned out that loading the database package 'Homo.sapiens' changed the random numbers:
set.seed(123) runif(1) # [1] 0.2875775 set.seed(123) suppressWarnings(suppressMessages(require(Homo.sapiens))) runif(1) # [1] 0.7883051 set.seed(123) runif(1) # [1] 0.2875775 Is that known or expected behaviour? Should I not load a package inside a function that later uses random numbers? Thanks in advance, Steffi _______________________________________________ Bioc-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel