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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: train_model
> ### Title: Train a model across horizons and validation datasets
> ### Aliases: train_model
> 
> ### ** Examples
> 
> # Sampled Seatbelts data from the R package datasets.
> data("data_seatbelts", package = "forecastML")
> 
> # Example - Training data for 2 horizon-specific models w/ common lags per predictor.
> horizons <- c(1, 12)
> lookback <- 1:15
> 
> data_train <- create_lagged_df(data_seatbelts, type = "train", outcome_col = 1,
+                                lookback = lookback, horizon = horizons)
> 
> # One custom validation window at the end of the dataset.
> windows <- create_windows(data_train, window_start = 181, window_stop = 192)
> 
> # User-define model - LASSO
> # A user-defined wrapper function for model training that takes the following
> # arguments: (1) a horizon-specific data.frame made with create_lagged_df(..., type = "train")
> # (e.g., my_lagged_df$horizon_h) and, optionally, (2) any number of additional named arguments
> # which are passed as '...' in train_model().
> library(glmnet)
Loading required package: Matrix
Loaded glmnet 4.1-8
> model_function <- function(data, my_outcome_col) {
+ 
+   x <- data[, -(my_outcome_col), drop = FALSE]
+   y <- data[, my_outcome_col, drop = FALSE]
+   x <- as.matrix(x, ncol = ncol(x))
+   y <- as.matrix(y, ncol = ncol(y))
+ 
+   model <- glmnet::cv.glmnet(x, y, nfolds = 3)
+   return(model)
+ }
> 
> # my_outcome_col = 1 is passed in ... but could have been defined in model_function().
> model_results <- train_model(data_train, windows, model_name = "LASSO", model_function,
+                              my_outcome_col = 1)
> 
> # View the results for the model (a) trained on the first horizon
> # and (b) to be assessed on the first outer-loop validation window.
> model_results$horizon_1$window_1$model

Call:  glmnet::cv.glmnet(x = x, y = y, nfolds = 3) 

Measure: Mean-Squared Error 

    Lambda Index Measure    SE Nonzero
min  0.554    37   289.9 44.12      22
1se  4.707    14   333.4 73.92       5
> 
> 
> 
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("train_model", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
> ### * <FOOTER>
> ###
> cleanEx()

detaching ‘package:glmnet’, ‘package:Matrix’

> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed:  14.784 0.721 17.297 0.004 0.009 
> grDevices::dev.off()
null device 
          1 
> ###
> ### Local variables: ***
> ### mode: outline-minor ***
> ### outline-regexp: "\\(> \\)?### [*]+" ***
> ### End: ***
> quit('no')
Assertion failure at kmp_runtime.cpp(6891): temp_reg_status_file_name.
OMP: Error #13: Assertion failure at kmp_runtime.cpp(6891).
OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://github.com/llvm/llvm-project/issues/.
Assertion failure at kmp_runtime.cpp(6891): temp_reg_status_file_name.
OMP: Error #13: Assertion failure at kmp_runtime.cpp(6891).
OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://github.com/llvm/llvm-project/issues/.
Killed