CRAN Package Check Results for Package bootImpute

Last updated on 2020-08-07 01:49:36 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.0 2.22 52.76 54.98 OK
r-devel-linux-x86_64-debian-gcc 1.1.0 1.83 40.81 42.64 OK
r-devel-linux-x86_64-fedora-clang 1.1.0 72.95 OK
r-devel-linux-x86_64-fedora-gcc 1.1.0 63.82 OK
r-devel-windows-ix86+x86_64 1.1.0 9.00 145.00 154.00 OK
r-patched-linux-x86_64 1.1.0 2.20 51.11 53.31 OK
r-patched-solaris-x86 1.1.0 189.80 OK
r-release-linux-x86_64 1.1.0 2.41 51.89 54.30 OK
r-release-macos-x86_64 1.1.0 OK
r-release-windows-ix86+x86_64 1.1.0 17.00 55.00 72.00 ERROR
r-oldrel-macos-x86_64 1.1.0 OK
r-oldrel-windows-ix86+x86_64 1.1.0 4.00 96.00 100.00 OK

Check Details

Version: 1.1.0
Check: examples
Result: ERROR
    Running examples in 'bootImpute-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: bootImpute
    > ### Title: Bootstrap then impute an incomplete dataset
    > ### Aliases: bootImpute
    >
    > ### ** Examples
    >
    > #this example shows how you can use bootImpute to impute using the mice
    > #package. If you do want to impute using MICE you can instead use the
    > #bootMice function, which essentially contains the code below
    > library(mice)
    
    Attaching package: 'mice'
    
    The following objects are masked from 'package:base':
    
     cbind, rbind
    
    >
    > #write a wrapper function to call mice with one imputation and return
    > #the imputed dataset
    > impOnce <- function(inputData) {
    + oneImp <- mice::mice(inputData, m=1)
    + mice::complete(oneImp)
    + }
    >
    > #bootstrap twice and impute each twice
    > #in practice you should bootstrap many more times, e.g. at least 200
    > imps <- bootImpute(ex_linquad, impOnce, nBoot=2, nImp=2, seed=564764)
    Warning in bootImpute(ex_linquad, impOnce, nBoot = 2, nImp = 2, seed = 564764) :
     It is recommended to use at least 200 bootstraps.
    
     iter imp variable
     1 1 xError in matcher(yhatobs, yhatmis, k = donors) :
     function 'enterRNGScope' not provided by package 'Rcpp'
    Calls: bootImpute ... sampler.univ -> do.call -> mice.impute.pmm -> matcher
    Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 1.1.0
Check: tests
Result: ERROR
     Running 'testthat.R' [18s]
    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
     In addition: Warning messages:
     1: In for (i in seq_len(n)) { :
     closing unused connection 7 (<-CRANwin.fb05.statistik.uni-dortmund.de:11071)
     2: In for (i in seq_len(n)) { :
     closing unused connection 6 (<-CRANwin.fb05.statistik.uni-dortmund.de:11071)
     3: In for (i in seq_len(n)) { :
     closing unused connection 5 (<-CRANwin.fb05.statistik.uni-dortmund.de:11071)
     4: In for (i in seq_len(n)) { :
     closing unused connection 4 (<-CRANwin.fb05.statistik.uni-dortmund.de:11071)
     Execution halted
Flavor: r-release-windows-ix86+x86_64