Running examples in ‘tabnet-Ex.R’ failed
The error most likely occurred in:

> ### Name: tabnet_pretrain
> ### Title: Tabnet model
> ### Aliases: tabnet_pretrain tabnet_pretrain.default
> ###   tabnet_pretrain.data.frame tabnet_pretrain.formula
> ###   tabnet_pretrain.recipe tabnet_pretrain.Node
> 
> ### ** Examples
> 
> ## Don't show: 
> if (torch::torch_is_installed()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ data("ames", package = "modeldata")
+ pretrained <- tabnet_pretrain(Sale_Price ~ ., data = ames, epochs = 1)
+ ## Don't show: 
+ }) # examplesIf
> data("ames", package = "modeldata")
> pretrained <- tabnet_pretrain(Sale_Price ~ ., data = ames, epochs = 1)
Error in `value_error()`:
! Can't convert data of class: 'NULL'
Backtrace:
     ▆
  1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)
  2. │ └─base::source(...)
  3. │   ├─base::withVisible(eval(ei, envir))
  4. │   └─base::eval(ei, envir)
  5. │     └─base::eval(ei, envir)
  6. ├─tabnet::tabnet_pretrain(Sale_Price ~ ., data = ames, epochs = 1)
  7. └─tabnet:::tabnet_pretrain.formula(...)
  8.   └─tabnet:::tabnet_bridge(...)
  9.     └─tabnet:::tabnet_train_unsupervised(...)
 10.       ├─coro::loop(...)
 11.       │ └─rlang::eval_bare(loop, env)
 12.       └─coro (local) `<fn>`()
 13.         ├─coro::is_exhausted(elt <<- iterator())
 14.         ├─elt <<- iterator()
 15.         │ └─rlang::env_poke(env, lhs, value, inherit = TRUE, create = FALSE)
 16.         └─torch (local) iterator()
 17.           └─torch::dataloader_next(iter, coro::exhausted())
 18.             └─iter$.next()
 19.               └─self$.next_data()
 20.                 └─self$.dataset_fetcher$fetch(index)
 21.                   └─self$collate_fn(data)
 22.                     └─base::lapply(data, utils_data_default_convert)
 23.                       └─torch (local) FUN(X[[i]], ...)
 24.                         └─base::tryCatch(...)
 25.                           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 26.                             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 27.                               └─value[[3L]](cond)
 28.                                 └─torch:::value_error("Can't convert data of class: '{class(data)}'")
 29.                                   └─rlang::abort(glue::glue(gettext(...)[[1]], .envir = env), class = "value_error")
Execution halted