* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/tsLSTMx.Rcheck’ * using R Under development (unstable) (2025-11-19 r89039) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘tsLSTMx/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘tsLSTMx’ version ‘0.1.0’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘tsLSTMx’ can be installed ... OK * checking package 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘tsLSTMx-Ex.R’ failed The error most likely occurred in: > ### Name: best_model_on_validation > ### Title: Evaluate the best LSTM model on the validation set > ### Aliases: best_model_on_validation > > ### ** Examples > > ## No test: > data <- data.frame( + Date = as.Date(c("01-04-18", "02-04-18", "03-04-18", "04-04-18", "05-04-18", + "06-04-18", "07-04-18", "08-04-18", "09-04-18", "10-04-18", + "11-04-18", "12-04-18", "13-04-18", "14-04-18", "15-04-18", + "16-04-18", "17-04-18", "18-04-18", "19-04-18", "20-04-18"), + format = "%d-%m-%y"), + A = c(0, 0, 4, 12, 20, 16, 16, 0, 12, 18, 12, 18, 18, 0, 0, 33, 31, 38, 76, 198) + ) > check_and_format_data(data) Warning in check_and_format_data(data) : Data set compatibility check passed successfully. Date A 1 2018-04-01 0 2 2018-04-02 0 3 2018-04-03 4 4 2018-04-04 12 5 2018-04-05 20 6 2018-04-06 16 > # Add a new column 'X' based on the values in the second column > data$X <- ifelse(data$A != 0, 1, 0) > > result_embed <- embed_columns(data = data, n_lag = 2) > new_data <- result_embed$data_frame > embedded_colnames <- result_embed$column_names > > result_split <- split_data(new_data = new_data, val_ratio = 0.1) > train_data <- result_split$train_data > validation_data <- result_split$validation_data > train_data <- result_split$train_data > validation_data <- result_split$validation_data > embedded_colnames <- result_embed$column_names > numeric_matrices <- convert_to_numeric_matrices(train_data = train_data, + validation_data = validation_data, + embedded_colnames = embedded_colnames) > X_train <- numeric_matrices$X_train > y_train <- numeric_matrices$y_train > X_val <- numeric_matrices$X_val > y_val <- numeric_matrices$y_val > > #' initialize_tensorflow() > > X_train <- numeric_matrices$X_train > X_val <- numeric_matrices$X_val > reshaped_data <- reshape_for_lstm(X_train = X_train, X_val = X_val) > X_train <- reshaped_data$X_train > X_val <- reshaped_data$X_val > X_train <- reshaped_data$X_train > y_train <- numeric_matrices$y_train > X_val <- reshaped_data$X_val > y_val <- numeric_matrices$y_val > tf <- reticulate::import("tensorflow") Error in py_module_import(module, convert = convert) : ModuleNotFoundError: No module named 'tensorflow' Run `reticulate::py_last_error()` for details. Calls: -> py_module_import Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/tsLSTMx.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:06.17, 51.70 + 17.45