Running ‘testthat.R’ [6s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bootImpute)
  > 
  > test_check("bootImpute")
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept)  0.07915058 0.19747184   -0.3108593    0.4691604 6.890917e-01
  x            0.87482487 0.16079989    0.5572895    1.1923603 1.931226e-07
  x2          -0.01858405 0.06370239   -0.1451103    0.1079422 7.711511e-01
       Estimate Std. error 95% CI lower 95% CI upper   p
  [1,]        1          0          NaN          NaN NaN
  
   iter imp variable
    1   1  x── 1. Failure: Testing bootMice works (@test_bootImpute.r#75)  ─────────────────
  `{ ... }` threw an error.
  Message: function 'enterRNGScope' not provided by package 'Rcpp'
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    6. bootImpute::bootMice(ex_linquad, nBoot = 10, nImp = 2)
    7. bootImpute::bootImpute(...)
    8. bootImpute:::impfun(obsdata[bsIndices, ], ...)
    9. mice::mice(inputData, m = 1, ...)
   10. mice:::sampler(...)
   11. mice:::sampler.univ(...)
   13. mice::mice.impute.pmm(...)
   14. mice:::matcher(yhatobs, yhatmis, k = donors)
  
  [1] "Outcome variable(s): y"
  [1] "Passive variables: xsq"
  [1] "Partially obs. variables: x"
  [1] "Fully obs. substantive model variables: z"
  [1] "Imputation  1"
  [1] "Imputing:  x  using  z  plus outcome"
  [1] "Outcome variable(s): y"
  [1] "Passive variables: xsq"
  [1] "Partially obs. variables: x"
  [1] "Fully obs. substantive model variables: z"
  [1] "Imputation  1"
  [1] "Imputing:  x  using  z  plus outcome"
  [1] "Outcome variable(s): y"
  [1] "Passive variables: xsq"
  [1] "Partially obs. variables: x"
  [1] "Fully obs. substantive model variables: z"
  [1] "Imputation  1"
  [1] "Imputing:  x  using  z  plus outcome"
  [1] "Outcome variable(s): y"
  [1] "Passive variables: xsq"
  [1] "Partially obs. variables: x"
  [1] "Fully obs. substantive model variables: z"
  [1] "Imputation  1"
  [1] "Imputing:  x  using  z  plus outcome"
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept)  0.07324015 0.17813009   -0.2786614    0.4251417 6.815276e-01
  x            0.87813736 0.15575323    0.5706295    1.1856452 7.227343e-08
  x2          -0.01727423 0.06691675   -0.1501987    0.1156503 7.968788e-01
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept)  0.07324015 0.17813009   -0.2786614    0.4251417 6.815276e-01
  x            0.87813736 0.15575323    0.5706295    1.1856452 7.227343e-08
  x2          -0.01727423 0.06691675   -0.1501987    0.1156503 7.968788e-01
  ── 2. Failure: Test bootImpute runs using multiple cores with mice (@test_parall
  `{ ... }` threw an error.
  Message: 2 nodes produced errors; first error: function 'enterRNGScope' not provided by package 'Rcpp'
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    6. bootImpute::bootMice(...)
    7. bootImpute::bootImpute(...)
    8. parallel::parLapply(...)
   10. parallel::clusterApply(...)
   11. parallel:::staticClusterApply(cl, fun, length(x), argfun)
   12. parallel:::checkForRemoteErrors(val)
  
  ── 3. Failure: Test bootImpute runs using multiple cores with mice with extra ar
  `{ ... }` threw an error.
  Message: 2 nodes produced errors; first error: function 'enterRNGScope' not provided by package 'Rcpp'
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    6. bootImpute::bootMice(...)
    7. bootImpute::bootImpute(...)
    8. parallel::parLapply(...)
   10. parallel::clusterApply(...)
   11. parallel:::staticClusterApply(cl, fun, length(x), argfun)
   12. parallel:::checkForRemoteErrors(val)
  
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept) -0.01028169  0.2680221   -0.6223072    0.6017438 0.9702874228
  x            0.96952393  0.1163650    0.6835377    1.2555102 0.0001782262
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept) -0.01028169  0.2680221   -0.6223072    0.6017438 0.9702874228
  x            0.96952393  0.1163650    0.6835377    1.2555102 0.0001782262
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 7 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 3 ]
  1. Failure: Testing bootMice works (@test_bootImpute.r#75) 
  2. Failure: Test bootImpute runs using multiple cores with mice (@test_parallel.R#35) 
  3. Failure: Test bootImpute runs using multiple cores with mice with extra arguments (@test_parallel.R#49) 
  
  Error: testthat unit tests failed
  Execution halted