R Under development (unstable) (2025-09-11 r88813 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > #' Machine Learning Integration Test Suite > #' > #' This script validates the integration between the ML framework > #' and the main AUS-OA simulation framework, ensuring seamless > #' predictive analytics integration. > #' > #' Key Tests: > #' - ML framework integration with simulation data structures > #' - Real-time prediction during simulation cycles > #' - ML-enhanced decision making > #' - Performance monitoring and logging > #' - Error handling and fallback mechanisms > > # Load required libraries > library(data.table) > library(dplyr) Attaching package: 'dplyr' The following objects are masked from 'package:data.table': between, first, last The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union > if (requireNamespace("caret", quietly = TRUE)) { + library(caret) + } else { + message("caret package not available, skipping ML integration tests") + quit(save = "no", status = 0) + } caret package not available, skipping ML integration tests > proc.time() user system elapsed 0.48 0.14 0.62