* using log directory 'd:/Rcompile/CRANpkg/local/4.3/drape.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'drape/DESCRIPTION' ... OK * this is package 'drape' version '0.0.1' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'drape' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [5s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [8s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [16s] ERROR Running 'testthat.R' [15s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(drape) > > test_check("drape") [ FAIL 9 | WARN 0 | SKIP 0 | PASS 9 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_average_partial_effect.R:25:3'): drape works with simple nuisance estimators ── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(out$est, 1) at test_average_partial_effect.R:25:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_average_partial_effect.R:36:3'): drape works with xgboost nuisance estimators ── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(out$est, 1) at test_average_partial_effect.R:36:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_regression_functions.R:5:3'): fit_lasso_poly acts correctly ──── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(out$fit(X), 5) at test_regression_functions.R:5:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_regression_functions.R:16:3'): fit_xgboost acts correctly ────── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(out$fit(X), 10) at test_regression_functions.R:16:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_resmooth.R:5:3'): resmooth acts correctly ────────────────────── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(sm$pred[[1]], 11) at test_resmooth.R:5:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_score.R:4:3'): spline_score acts correctly for single df ─────── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(spl$rho(x), size = 10) at test_score.R:4:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_score.R:16:3'): ng_pseudo_y gives correct form of output ─────── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(ng_pseudo_response(1:5), size = 5) at test_score.R:16:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_score.R:22:3'): basis_poly acts correctly for single df ──────── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(bs$rho(X), size = 5) at test_score.R:22:3 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_simulation_settings.R:6:7'): simulate_data works in simulated settings ── Error in `loadNamespace(x)`: there is no package called 'vctrs' Backtrace: ▆ 1. ├─testthat::expect_vector(out$y, size = n) at test_simulation_settings.R:6:7 2. │ └─base::tryCatch(...) 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base::loadNamespace(x) 7. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 8. └─base (local) withOneRestart(expr, restarts[[1L]]) 9. └─base (local) doWithOneRestart(return(expr), restart) [ FAIL 9 | WARN 0 | SKIP 0 | PASS 9 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [2s] OK * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 1 ERROR