amices / mice

Multivariate Imputation by Chained Equations
https://amices.org/mice/
GNU General Public License v2.0
428 stars 107 forks source link

.Random.seed not found when running future mice outside of .GlobalEnv #517

Closed gerkovink closed 1 year ago

gerkovink commented 1 year ago

see below

library(mice, warn.conflicts = FALSE)
ex <- function(x){
  run <- function(x){
    futuremice(x, m=5, n.core=2)
  }
  run(x)
}
ex(nhanes)
#> Error in futuremice(x, m = 5, n.core = 2): object '.Random.seed' not found

Created on 2022-11-10 with reprex v2.0.2

stefvanbuuren commented 1 year ago

I believe c084cdd48 solved this.