R version 4.6.0 alpha (2026-03-28 r89737 ucrt) Copyright (C) 2026 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. > library(testthat) > library(ggmlR) > > heavy <- c( + "normalization", + "sequence-ops", + "binary-operations", + "glu", + "nn-sequential", + "matrix-ops", + "callbacks", + "onnx-quant", + "cpu-backend", + "onnx-elementwise", + "onnx-norm", + "onnx-misc", + "onnx-logic", + "onnx-gemm", + "onnx-resize", + "onnx-nn", + "nn-functional", + "activations-extended", + "onnx-ops", + "transformer-ops", + "onnx-shape", + "math-operations", + "activations", + "backend-extended", + "helpers", + "onnx-reduce", + "chain-sequential-batchnorm", + "chain-patterns", + "onnx-chain-quant", + "onnx-chain-qlinearconv", + "onnx-chain-uncovered-ops", + "onnx-chain-transformer", + "onnx-chain-broadcast-strict", + "onnx-chain-maskrcnn-broadcast", + "onnx-chain-erf-gelu", + "onnx-chain-resize-broadcast", + "onnx-chain-constantofshape-int64", + "onnx-chain-roberta-attn", + "onnx-chain-batched-matmul", + "onnx-chain-classify", + "onnx-chain-xcit-dynamic", + "onnx-chain-fpn", + "onnx-chain-pooling", + "onnx-chain-unet", + "onnx-chain-audio", + "onnx-chain-superres", + "onnx-chain-convtranspose", + "onnx-chain-eyelike", + "onnx-chain-decoder", + "onnx-chain-detect", + "onnx-chain-powernorm", + "onnx-chain-bert-mlp", + "onnx-chain-position", + "onnx-chain-attn-mask", + "onnx-chain-postprocess", + "onnx-chain-cast", + "onnx-chain-preprocess" + ) > > on_cran <- !identical(Sys.getenv("NOT_CRAN"), "true") > > test_dir <- if (dir.exists("testthat")) "testthat" else "tests/testthat" > > if (on_cran) { + message("--- RUNNING LIGHT TESTS ONLY ---") + + all_tests <- list.files(test_dir, pattern = "^test-.*\\.R$") + all_names <- sub("^test-(.*)\\.R$", "\\1", all_tests) + + light_tests <- setdiff(all_names, heavy) + message("Tests to run: ", paste(light_tests, collapse = ", ")) + + if (length(light_tests) == 0) { + # fallback + test_check("ggmlR") + } else { + # grepl(filter, names) + filter_regex <- paste(light_tests, collapse = "|") + test_check("ggmlR", filter = filter_regex) + } + } else { + test_check("ggmlR") + } --- RUNNING LIGHT TESTS ONLY --- Tests to run: ag-device, ag-layers, ag-mha, ag-training, autograd-ops, autograd, backend-buffers, backend, chain-ag-early-stopping, context, convolution-pooling, cpu-features, ggml, graph-extended, logging, memory-extended, memory, new-functions, onnx-activations, onnx-chain-roialign-nms, onnx-chain-scatter-gnn, onnx-math, onnx-meta, operations-extended, optimizer, quantization, quants, reduction-ops, reset, reshape, scheduler, set-operations, softmax, static-lib, tensor-info, tensors-extended, tensors, types, version, vulkan GGML library loaded successfully! GGML version: 0.9.5 Tensor overhead: 384 bytes GGML library loaded successfully! GGML version: 0.9.5 Tensor overhead: 384 bytes Vulkan: NOT AVAILABLE To enable: install libvulkan-dev and glslc, then reinstall ggmlR Ubuntu/Debian: sudo apt install libvulkan-dev glslc [ FAIL 0 | WARN 0 | SKIP 18 | PASS 978 ] ══ Skipped tests (18) ══════════════════════════════════════════════════════════ • On CRAN (2): 'test-backend-extended.R:4:3', 'test-backend-extended.R:43:3' • Overlapping pooling requires specific tensor layout - tested in 2D pooling (1): 'test-convolution-pooling.R:156:3' • Platform-dependent behavior (1): 'test-ggml.R:18:3' • Slow test - set GGMLR_SLOW_TESTS=1 to run (6): 'test-quants.R:142:3', 'test-quants.R:168:3', 'test-quants.R:218:3', 'test-quants.R:234:3', 'test-quants.R:250:3', 'test-quants.R:266:3' • Vulkan not available (7): 'test-scheduler.R:2:3', 'test-scheduler.R:28:3', 'test-scheduler.R:55:3', 'test-scheduler.R:109:3', 'test-scheduler.R:172:3', 'test-scheduler.R:188:3', 'test-scheduler.R:223:3' • Vulkan not available or no devices found (1): 'test-vulkan.R:285:5' [ FAIL 0 | WARN 0 | SKIP 18 | PASS 978 ] > > proc.time() user system elapsed 33.12 1.70 11.03