Running 'spelling.R' [0s]
  Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(brulee)
  Warning message:
  Torch failed to start, restart your R session to try again. D:\temp\Rtmp6FKKOx\RLIBS_270c27f17e0a\torch/lib\lantern.dll - Das angegebene Modul wurde nicht gefunden.
   
  > library(tibble)
  > 
  > RNGkind("Mersenne-Twister")
  > 
  > if (torch::torch_is_installed()) {
  +  test_check("brulee")
  + }
  [ FAIL 49 | WARN 0 | SKIP 0 | PASS 24 ]
  
  == Failed tests ================================================================
  -- Failure (test-linear_reg-fit.R:13:3): linear regression test ----------------
  `fit <- brulee_linear_reg(y ~ ., df, epochs = 2)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-linear_reg-fit.R:13:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_linear_reg(y ~ ., df, epochs = 2)
    8. \-brulee:::brulee_linear_reg.formula(y ~ ., df, epochs = 2)
    9.   \-brulee:::brulee_linear_reg_bridge(...)
   10.     \-brulee:::linear_reg_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Error (test-linear_reg-fit.R:18:3): linear regression test ------------------
  Error in `coef(fit)`: object 'fit' not found
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-linear_reg-fit.R:18:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-stats::coef(fit)
  -- Error (test-logistic_reg-fit.R:19:3): logistic regression -------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Error (test-logistic_reg-fit.R:24:3): logistic regression -------------------
  `{ ... }` threw an unexpected error.
  Message: object 'fit' not found
  Class:   simpleError/error/condition
  -- Failure (test-logistic_reg-fit.R:28:3): logistic regression -----------------
  `... <- NULL` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-logistic_reg-fit.R:28:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_logistic_reg(...)
    8. \-brulee:::brulee_logistic_reg.formula(...)
    9.   \-brulee:::brulee_logistic_reg_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-logistic_reg-fit.R:34:3): logistic regression -------------------
  Error in `coef(fit)`: object 'fit' not found
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-logistic_reg-fit.R:34:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-stats::coef(fit)
  -- Error (test-logistic_reg-fit.R:53:3): class weights - logistic regression ---
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Error (test-logistic_reg-fit.R:62:3): class weights - logistic regression ---
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Failure (test-logistic_reg-fit.R:68:3): class weights - logistic regression --
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-logistic_reg-fit.R:68:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_logistic_reg(...) at test-logistic_reg-fit.R:70:4
    8. \-brulee:::brulee_logistic_reg.formula(...)
    9.   \-brulee:::brulee_logistic_reg_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-logistic_reg-fit.R:76:3): class weights - logistic regression ---
  Error in `predict(fit_bal, df_imbal)`: object 'fit_bal' not found
  Backtrace:
      x
   1. +-testthat::expect_true(...) at test-logistic_reg-fit.R:76:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-stats::predict(fit_bal, df_imbal)
  -- Failure (test-mlp-binary.R:28:3): different fit interfaces ------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-binary.R:28:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(x_mat, y, epochs = 10L) at test-mlp-binary.R:30:4
    8. \-brulee:::brulee_mlp.matrix(x_mat, y, epochs = 10L)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-mlp-binary.R:35:3): different fit interfaces --------------------
  `{ ... }` threw an unexpected error.
  Message: object 'fit_mat' not found
  Class:   simpleError/error/condition
  -- Failure (test-mlp-binary.R:40:3): different fit interfaces ------------------
  `fit_df <- brulee_mlp(x_df, y, epochs = 10L)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-binary.R:40:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(x_df, y, epochs = 10L)
    8. \-brulee:::brulee_mlp.data.frame(x_df, y, epochs = 10L)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Failure (test-mlp-binary.R:52:3): different fit interfaces ------------------
  `fit_f <- brulee_mlp(Class ~ ., smol, epochs = 10L)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-binary.R:52:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(Class ~ ., smol, epochs = 10L)
    8. \-brulee:::brulee_mlp.formula(Class ~ ., smol, epochs = 10L)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Failure (test-mlp-binary.R:58:3): different fit interfaces ------------------
  `fit_rec <- brulee_mlp(rec, lending_club, epochs = 10L)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-binary.R:58:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(rec, lending_club, epochs = 10L)
    8. \-brulee:::brulee_mlp.recipe(rec, lending_club, epochs = 10L)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-mlp-binary.R:71:3): predictions ---------------------------------
  <std::runtime_error/C++Error/error/condition>
  Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      x
   1. +-brulee::brulee_mlp(x_df, y, epochs = 10L, batch_size = length(y)) at test-mlp-binary.R:71:2
   2. \-brulee:::brulee_mlp.data.frame(x_df, y, epochs = 10L, batch_size = length(y))
   3.   \-brulee:::brulee_mlp_bridge(...)
   4.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   5.       \-torch::torch_tensor(wts)
   6.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   7.           \-methods$initialize(...)
   8.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-mlp-binary.R:101:3): mlp binary learns something ----------------
  <std::runtime_error/C++Error/error/condition>
  Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      x
   1. +-brulee::brulee_mlp(...) at test-mlp-binary.R:101:2
   2. \-brulee:::brulee_mlp.data.frame(...)
   3.   \-brulee:::brulee_mlp_bridge(...)
   4.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   5.       \-torch::torch_tensor(wts)
   6.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   7.           \-methods$initialize(...)
   8.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-mlp-binary.R:130:3): class weights - mlp ------------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Error (test-mlp-binary.R:137:3): class weights - mlp ------------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Failure (test-mlp-binary.R:143:3): class weights - mlp ----------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-binary.R:143:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(y ~ ., df_imbal, learn_rate = 0.1) at test-mlp-binary.R:145:4
    8. \-brulee:::brulee_mlp.formula(y ~ ., df_imbal, learn_rate = 0.1)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-mlp-binary.R:150:3): class weights - mlp ------------------------
  Error in `predict(fit_bal, df_imbal)`: object 'fit_bal' not found
  Backtrace:
      x
   1. +-testthat::expect_true(...) at test-mlp-binary.R:150:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-stats::predict(fit_bal, df_imbal)
  -- Error (test-mlp-multinomial.R:21:3): multinomial mlp ------------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Error (test-mlp-multinomial.R:26:3): multinomial mlp ------------------------
  `{ ... }` threw an unexpected error.
  Message: object 'fit' not found
  Class:   simpleError/error/condition
  -- Failure (test-mlp-multinomial.R:30:3): multinomial mlp ----------------------
  `fit <- brulee_mlp(y ~ ., df, epochs = 10, learn_rate = 0.1, optimizer = "SGD")` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-multinomial.R:30:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(...)
    8. \-brulee:::brulee_mlp.formula(...)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-mlp-multinomial.R:44:3): class weights - mlp --------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Error (test-mlp-multinomial.R:52:3): class weights - mlp --------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Failure (test-mlp-multinomial.R:58:3): class weights - mlp ------------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-multinomial.R:58:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(y ~ ., df, learn_rate = 0.1, optimizer = "SGD") at test-mlp-multinomial.R:60:4
    8. \-brulee:::brulee_mlp.formula(y ~ ., df, learn_rate = 0.1, optimizer = "SGD")
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-mlp-multinomial.R:66:3): class weights - mlp --------------------
  Error in `predict(fit_bal, df)`: object 'fit_bal' not found
  Backtrace:
      x
   1. +-testthat::expect_true(...) at test-mlp-multinomial.R:66:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-base::sort(table(predict(fit_bal, df)))
   5. +-base::table(predict(fit_bal, df))
   6. \-stats::predict(fit_bal, df)
  -- Failure (test-mlp-regression.R:29:3): different fit interfaces --------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:29:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(ames_x_mat, ames_y, epochs = 10L, mixture = 0) at test-mlp-regression.R:31:4
    8. \-brulee:::brulee_mlp.matrix(...)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Error (test-mlp-regression.R:36:3): different fit interfaces ----------------
  `{ ... }` threw an unexpected error.
  Message: object 'fit_mat' not found
  Class:   simpleError/error/condition
  -- Failure (test-mlp-regression.R:41:3): different fit interfaces --------------
  `fit_df <- brulee_mlp(ames_x_df, ames_y, epochs = 10L)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:41:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(ames_x_df, ames_y, epochs = 10L)
    8. \-brulee:::brulee_mlp.data.frame(ames_x_df, ames_y, epochs = 10L)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Failure (test-mlp-regression.R:53:3): different fit interfaces --------------
  `fit_f <- brulee_mlp(Sale_Price ~ ., ames_smol, epochs = 10L)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:53:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(Sale_Price ~ ., ames_smol, epochs = 10L)
    8. \-brulee:::brulee_mlp.formula(Sale_Price ~ ., ames_smol, epochs = 10L)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Failure (test-mlp-regression.R:59:3): different fit interfaces --------------
  `fit_rec <- brulee_mlp(ames_rec, ames, epochs = 10L)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:59:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(ames_rec, ames, epochs = 10L)
    8. \-brulee:::brulee_mlp.recipe(ames_rec, ames, epochs = 10L)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Error (test-mlp-regression.R:70:3): predictions -----------------------------
  <std::runtime_error/C++Error/error/condition>
  Error in `cpp_torch_manual_seed(as.character(seed))`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      x
   1. +-brulee::brulee_mlp(ames_x_df, ames_y, epochs = 10L) at test-mlp-regression.R:70:2
   2. \-brulee:::brulee_mlp.data.frame(ames_x_df, ames_y, epochs = 10L)
   3.   \-brulee:::brulee_mlp_bridge(...)
   4.     \-brulee:::mlp_fit_imp(...)
   5.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   6.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Failure (test-mlp-regression.R:102:3): bad args -----------------------------
  `brulee_mlp(ames_x_mat, ames_y, epochs = 2)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:102:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(ames_x_mat, ames_y, epochs = 2)
    8. \-brulee:::brulee_mlp.matrix(ames_x_mat, ames_y, epochs = 2)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Failure (test-mlp-regression.R:116:3): bad args -----------------------------
  `brulee_mlp(ames_x_mat, ames_y, epochs = 2, hidden_units = 2)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:116:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(ames_x_mat, ames_y, epochs = 2, hidden_units = 2)
    8. \-brulee:::brulee_mlp.matrix(ames_x_mat, ames_y, epochs = 2, hidden_units = 2)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Failure (test-mlp-regression.R:155:3): bad args -----------------------------
  `brulee_mlp(ames_x_mat, ames_y, epochs = 2, dropout = 0)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:155:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(ames_x_mat, ames_y, epochs = 2, dropout = 0)
    8. \-brulee:::brulee_mlp.matrix(ames_x_mat, ames_y, epochs = 2, dropout = 0)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Failure (test-mlp-regression.R:176:3): bad args -----------------------------
  `brulee_mlp(ames_x_mat, ames_y, epochs = 2, validation = 0)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:176:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(ames_x_mat, ames_y, epochs = 2, validation = 0)
    8. \-brulee:::brulee_mlp.matrix(ames_x_mat, ames_y, epochs = 2, validation = 0)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Error (test-mlp-regression.R:206:3): bad args -------------------------------
  <std::runtime_error/C++Error/error/condition>
  Error in `cpp_torch_manual_seed(as.character(seed))`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      x
   1. +-brulee::brulee_mlp(ames_x_mat, ames_y, epochs = 10L) at test-mlp-regression.R:206:2
   2. \-brulee:::brulee_mlp.matrix(ames_x_mat, ames_y, epochs = 10L)
   3.   \-brulee:::brulee_mlp_bridge(...)
   4.     \-brulee:::mlp_fit_imp(...)
   5.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   6.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Error (test-mlp-regression.R:316:3): mlp learns something -------------------
  <std::runtime_error/C++Error/error/condition>
  Error in `cpp_torch_manual_seed(as.character(seed))`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      x
   1. +-brulee::brulee_mlp(...) at test-mlp-regression.R:316:2
   2. \-brulee:::brulee_mlp.data.frame(...)
   3.   \-brulee:::brulee_mlp_bridge(...)
   4.     \-brulee:::mlp_fit_imp(...)
   5.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   6.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Failure (test-mlp-regression.R:332:3): variable hidden_units length ---------
  `model <- brulee_mlp(x, y, hidden_units = c(2, 3), epochs = 1)` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-mlp-regression.R:332:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_mlp(x, y, hidden_units = c(2, 3), epochs = 1)
    8. \-brulee:::brulee_mlp.data.frame(...)
    9.   \-brulee:::brulee_mlp_bridge(...)
   10.     \-brulee:::mlp_fit_imp(...)
   11.       \-torch::torch_manual_seed(sample.int(10^5, 1))
   12.         \-torch:::cpp_torch_manual_seed(as.character(seed))
  -- Error (test-mlp-regression.R:337:3): variable hidden_units length -----------
  Error in `coef(model)`: object 'model' not found
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-mlp-regression.R:337:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-base::unlist(coef(model))
   5. \-stats::coef(model)
  -- Error (test-multinomial_reg-fit.R:21:3): multinomial regression -------------
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Error (test-multinomial_reg-fit.R:27:3): multinomial regression -------------
  `{ ... }` threw an unexpected error.
  Message: object 'fit' not found
  Class:   simpleError/error/condition
  -- Failure (test-multinomial_reg-fit.R:31:3): multinomial regression -----------
  `... <- NULL` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-multinomial_reg-fit.R:31:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_multinomial_reg(...)
    8. \-brulee:::brulee_multinomial_reg.formula(...)
    9.   \-brulee:::brulee_multinomial_reg_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-multinomial_reg-fit.R:45:3): class weights - multinomial regression --
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Error (test-multinomial_reg-fit.R:53:3): class weights - multinomial regression --
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  -- Failure (test-multinomial_reg-fit.R:60:3): class weights - multinomial regression --
  `{ ... }` threw an unexpected error.
  Message: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Class:   std::runtime_error/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-multinomial_reg-fit.R:60:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-brulee::brulee_multinomial_reg(y ~ ., df, learn_rate = 0.1, optimizer = "SGD") at test-multinomial_reg-fit.R:62:4
    8. \-brulee:::brulee_multinomial_reg.formula(...)
    9.   \-brulee:::brulee_multinomial_reg_bridge(...)
   10.     \-brulee:::check_class_weights(class_weights, lvls, xtab, f_nm)
   11.       \-torch::torch_tensor(wts)
   12.         \-Tensor$new(data, dtype, device, requires_grad, pin_memory)
   13.           \-methods$initialize(...)
   14.             \-torch:::torch_tensor_cpp(...)
  -- Error (test-multinomial_reg-fit.R:68:3): class weights - multinomial regression --
  Error in `predict(fit_bal, df)`: object 'fit_bal' not found
  Backtrace:
      x
   1. +-testthat::expect_true(...) at test-multinomial_reg-fit.R:68:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-base::sort(table(predict(fit_bal, df)))
   5. +-base::table(predict(fit_bal, df))
   6. \-stats::predict(fit_bal, df)
  
  [ FAIL 49 | WARN 0 | SKIP 0 | PASS 24 ]
  Error: Test failures
  Execution halted