Running ‘testthat.R’ [17s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ddml)
  > 
  > test_check("ddml")
  [ FAIL 54 | WARN 54 | SKIP 0 | PASS 8 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-crosspred.R:21:3'): crosspred computes with a single model ─────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::crosspred(...) at test-crosspred.R:21:2
   2.   ├─base::do.call(do.call, learners)
   3.   ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   4.   └─ddml (local) `<fn>`(X = `<dbl[,50]>`, y = `<dbl>`)
   5.     ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   6.     │ └─MASS::ginv(X)
   7.     └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-crosspred.R:42:3'): crosspred computes with ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::crosspred(...) at test-crosspred.R:42:2
    2.   └─ddml:::ensemble(...)
    3.     └─ddml:::ensemble_weights(...)
    4.       └─ddml::crossval(...)
    5.         └─base::sapply(...)
    6.           └─base::lapply(X = X, FUN = FUN, ...)
    7.             └─ddml (local) FUN(X[[i]], ...)
    8.               └─ddml:::crossval_compute(...)
    9.                 ├─base::do.call(do.call, mdl_fun)
   10.                 ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   11.                 └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,50]>`)
   12.                   ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   13.                   │ └─MASS::ginv(X)
   14.                   └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-crosspred.R:66:3'): crosspred computes with ensemble procedures and sparse matrices ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::crosspred(...) at test-crosspred.R:66:2
    2.   └─ddml:::ensemble(...)
    3.     └─ddml:::ensemble_weights(...)
    4.       └─ddml::crossval(...)
    5.         └─base::sapply(...)
    6.           └─base::lapply(X = X, FUN = FUN, ...)
    7.             └─ddml (local) FUN(X[[i]], ...)
    8.               └─ddml:::crossval_compute(...)
    9.                 ├─base::do.call(do.call, mdl_fun)
   10.                 ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   11.                 └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dgCMatrx[,50]>`)
   12.                   ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   13.                   │ └─MASS::ginv(X)
   14.                   └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-crosspred.R:91:3'): crosspred computes auxilliary predictions ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::crosspred(...) at test-crosspred.R:91:2
    2.   └─ddml:::ensemble(...)
    3.     └─ddml:::ensemble_weights(...)
    4.       └─ddml::crossval(...)
    5.         └─base::sapply(...)
    6.           └─base::lapply(X = X, FUN = FUN, ...)
    7.             └─ddml (local) FUN(X[[i]], ...)
    8.               └─ddml:::crossval_compute(...)
    9.                 ├─base::do.call(do.call, mdl_fun)
   10.                 ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   11.                 └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   12.                   ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   13.                   │ └─MASS::ginv(X)
   14.                   └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-crossval.R:9:3'): crossval_compute returns residuals (w/o instruments) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml:::crossval_compute(test_sample, learner, y, X, Z = NULL) at test-crossval.R:9:2
   2.   ├─base::do.call(do.call, mdl_fun)
   3.   ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   4.   └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,100]>`)
   5.     ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   6.     │ └─MASS::ginv(X)
   7.     └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-crossval.R:26:3'): crossval returns residuals by learner (w/o instruments) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::crossval(y, X, Z = NULL, learners, cv_folds = 3, silent = T) at test-crossval.R:26:2
    2.   └─base::sapply(...)
    3.     └─base::lapply(X = X, FUN = FUN, ...)
    4.       └─ddml (local) FUN(X[[i]], ...)
    5.         └─ddml:::crossval_compute(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,100]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-crossval.R:45:3'): crossval returns residuals by learner (w/ instruments) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::crossval(D, X, Z, learners, cv_folds = 3, silent = T) at test-crossval.R:45:2
    2.   └─base::sapply(...)
    3.     └─base::lapply(X = X, FUN = FUN, ...)
    4.       └─ddml (local) FUN(X[[i]], ...)
    5.         └─ddml:::crossval_compute(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,50]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_ate.R:10:3'): ddml_ate computes with a single model ───────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_ate(...) at test-ddml_ate.R:10:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_ate.R:30:3'): ddml_ate computes with an ensemble procedure ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_ate(...) at test-ddml_ate.R:30:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_ate.R:50:3'): ddml_ate computes with multiple ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_ate(...) at test-ddml_ate.R:50:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_ate.R:71:3'): ddml_ate computes with multiple ensemble procedures & shortstack ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_ate(...) at test-ddml_ate.R:71:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::shortstacking(...)
    4.       └─ddml::crosspred(...)
    5.         └─ddml:::ensemble(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_ate.R:92:3'): summary.ddml_ate computes with a single model ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_ate(...) at test-ddml_ate.R:92:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_ate.R:112:3'): summary.ddml_ate computes with multiple ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_ate(...) at test-ddml_ate.R:112:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:11:3'): ddml_fpliv computes with a single model ───
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(y, D, Z, X, learners, sample_folds = 3, silent = T) at test-ddml_fpliv.R:11:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:31:3'): ddml_fpliv computes with an ensemble procedure ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:31:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:53:3'): ddml_fpliv computes with stacking w/o enforcing the LIE ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:53:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:76:3'): ddml_fpliv computes with multiple ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:76:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:100:3'): ddml_fpliv computes with multiple ensembles w/o the LIE ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:100:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:124:3'): ddml_fpliv computes with multiple ensembles and sparse matrices ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:124:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dgCMatrx[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:154:3'): ddml_fpliv computes with different sets of learners ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:154:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:180:3'): ddml_fpliv computes w/ ensembles & shortstack ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:180:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::shortstacking(...)
    4.       └─ddml::crosspred(...)
    5.         └─ddml:::ensemble(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:205:3'): ddml_fpliv computes w/ ensembles & shortstack but w/o the LIE  ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:205:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:227:3'): summary.ddml_fpliv computes with a single model ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_fpliv(y, D, Z, X, learners, sample_folds = 3, silent = T) at test-ddml_fpliv.R:227:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:248:3'): ddml_fpliv computes with an ensemble procedure, multi D ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:248:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:270:3'): ddml_fpliv computes with an ensemble procedure w/o LIE, multi D ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:270:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:293:3'): ddml_fpliv computes with multiple ensemble procedures, multi D ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:293:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_fpliv.R:316:3'): ddml_fpliv computes with ensemble procedures w/o LIE, multi D ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_fpliv(...) at test-ddml_fpliv.R:316:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_late.R:12:3'): ddml_late computes with a single model ─────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_late(...) at test-ddml_late.R:12:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_late.R:34:3'): ddml_plm computes with an ensemble procedure ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_late(...) at test-ddml_late.R:34:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_late.R:57:3'): ddml_plm computes with multiple ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_late(...) at test-ddml_late.R:57:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_late.R:82:3'): ddml_plm computes with multiple ensemble procedures & shortstack ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_late(...) at test-ddml_late.R:82:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::shortstacking(...)
    4.       └─ddml::crosspred(...)
    5.         └─ddml:::ensemble(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_late.R:106:3'): summary.ddml_late computes with a single model ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_late(...) at test-ddml_late.R:106:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:12:3'): ddml_pliv computes with a single model ─────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_pliv(y, D, Z, X, learners, sample_folds = 3, silent = T) at test-ddml_pliv.R:12:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:32:3'): ddml_pliv computes with an ensemble procedure ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_pliv(...) at test-ddml_pliv.R:32:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:54:3'): ddml_pliv computes with multiple ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_pliv(...) at test-ddml_pliv.R:54:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:85:3'): ddml_pliv computes with different sets of learners ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_pliv(...) at test-ddml_pliv.R:85:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:117:3'): ddml_pliv computes with different sets of learners & shortstack ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_pliv(...) at test-ddml_pliv.R:117:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::shortstacking(...)
    4.       └─ddml::crosspred(...)
    5.         └─ddml:::ensemble(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:143:3'): summary.ddml_pliv computes with a single model ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_pliv(y, D, Z, X, learners, sample_folds = 3, silent = T) at test-ddml_pliv.R:143:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:165:3'): ddml_pliv computes with a single model and multivariate D,Z ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ddml_pliv(y, D, Z, X, learners, sample_folds = 3, silent = T) at test-ddml_pliv.R:165:2
   2.   └─ddml:::get_CEF(...)
   3.     └─ddml::crosspred(...)
   4.       ├─base::do.call(do.call, learners)
   5.       ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   6.       └─ddml (local) `<fn>`(X = `<dbl[,40]>`, y = `<dbl>`)
   7.         ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   8.         │ └─MASS::ginv(X)
   9.         └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_pliv.R:186:3'): ddml_pliv computes with different ensembles and multivariate D,Z ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_pliv(...) at test-ddml_pliv.R:186:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:31:3'): ddml_plm computes with an ensemble procedure ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:31:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:53:3'): ddml_plm computes with multiple ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:53:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:77:3'): ddml_plm computes with multiple ensemble procedures & sparse mats ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:77:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dgCMatrx[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:100:3'): ddml_plm computes w/ an ensemble procedure & shortstacking ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:100:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::shortstacking(...)
    4.       └─ddml::crosspred(...)
    5.         └─ddml:::ensemble(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:122:3'): ddml_plm computes w/ multiple ensemble procedures & shortstacking ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:122:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::shortstacking(...)
    4.       └─ddml::crosspred(...)
    5.         └─ddml:::ensemble(...)
    6.           ├─base::do.call(do.call, mdl_fun)
    7.           ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    8.           └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
    9.             ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   10.             │ └─MASS::ginv(X)
   11.             └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:166:3'): summary.ddml_plm computes with multiple ensemble procedures ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:166:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:191:3'): ddml_plm computes with an ensemble procedure and multivariate D ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:191:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ddml_plm.R:213:3'): ddml_plm computes with multiple ensemble types and multivariate D ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml::ddml_plm(...) at test-ddml_plm.R:213:2
    2.   └─ddml:::get_CEF(...)
    3.     └─ddml::crosspred(...)
    4.       └─ddml:::ensemble(...)
    5.         └─ddml:::ensemble_weights(...)
    6.           └─ddml::crossval(...)
    7.             └─base::sapply(...)
    8.               └─base::lapply(X = X, FUN = FUN, ...)
    9.                 └─ddml (local) FUN(X[[i]], ...)
   10.                   └─ddml:::crossval_compute(...)
   11.                     ├─base::do.call(do.call, mdl_fun)
   12.                     ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   13.                     └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,40]>`)
   14.                       ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   15.                       │ └─MASS::ginv(X)
   16.                       └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ensemble.R:11:3'): ensemble_weights returns a weight matrix ────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml:::ensemble_weights(...) at test-ensemble.R:11:2
    2.   └─ddml::crossval(...)
    3.     └─base::sapply(...)
    4.       └─base::lapply(X = X, FUN = FUN, ...)
    5.         └─ddml (local) FUN(X[[i]], ...)
    6.           └─ddml:::crossval_compute(...)
    7.             ├─base::do.call(do.call, mdl_fun)
    8.             ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
    9.             └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,50]>`)
   10.               ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   11.               │ └─MASS::ginv(X)
   12.               └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ensemble.R:36:3'): ensemble returns a list of fitted learners ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml:::ensemble(...) at test-ensemble.R:36:2
    2.   └─ddml:::ensemble_weights(...)
    3.     └─ddml::crossval(...)
    4.       └─base::sapply(...)
    5.         └─base::lapply(X = X, FUN = FUN, ...)
    6.           └─ddml (local) FUN(X[[i]], ...)
    7.             └─ddml:::crossval_compute(...)
    8.               ├─base::do.call(do.call, mdl_fun)
    9.               ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   10.               └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,50]>`)
   11.                 ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   12.                 │ └─MASS::ginv(X)
   13.                 └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ensemble.R:54:3'): prediction with ensemble learners returns fitted values ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─ddml:::ensemble(...) at test-ensemble.R:54:2
    2.   └─ddml:::ensemble_weights(...)
    3.     └─ddml::crossval(...)
    4.       └─base::sapply(...)
    5.         └─base::lapply(X = X, FUN = FUN, ...)
    6.           └─ddml (local) FUN(X[[i]], ...)
    7.             └─ddml:::crossval_compute(...)
    8.               ├─base::do.call(do.call, mdl_fun)
    9.               ├─base (local) `<fn>`(what = `<fn>`, args = `<named list>`)
   10.               └─ddml (local) `<fn>`(y = `<dbl>`, X = `<dbl[,50]>`)
   11.                 ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   12.                 │ └─MASS::ginv(X)
   13.                 └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ols.R:6:3'): ols returns output of correct types ───────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ols(y, X, const = T) at test-ols.R:6:2
   2.   ├─ddml:::csolve(as.matrix(Matrix::crossprod(X)))
   3.   │ └─MASS::ginv(X)
   4.   └─base::as.matrix(Matrix::crossprod(X))
  ── Error ('test-ols.R:15:3'): predict.ols returns fitted values ────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ols(y, X1, const = T, w = runif(100)) at test-ols.R:15:2
   2.   ├─ddml:::csolve(as.matrix(Matrix::crossprod(Xw, X)))
   3.   │ └─MASS::ginv(X)
   4.   └─base::as.matrix(Matrix::crossprod(Xw, X))
  ── Error ('test-ols.R:26:3'): wls returns output of correct types ──────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─ddml::ols(y, X, const = T, w = runif(100)) at test-ols.R:26:2
   2.   ├─ddml:::csolve(as.matrix(Matrix::crossprod(Xw, X)))
   3.   │ └─MASS::ginv(X)
   4.   └─base::as.matrix(Matrix::crossprod(Xw, X))
  
  [ FAIL 54 | WARN 54 | SKIP 0 | PASS 8 ]
  Error: Test failures
  Execution halted