* using log directory ‘/srv/hornik/tmp/CRAN_pretest/edgemodelr.Rcheck’ * using R Under development (unstable) (2025-09-01 r88761) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (3+b1) Debian flang-new version 19.1.7 (3+b1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘edgemodelr/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘edgemodelr’ version ‘0.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/4s] NOTE Maintainer: ‘Pawan Rama Mali ’ New submission Possibly misspelled words in DESCRIPTION: GGUF (8:73) GPT (9:6) * 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 ‘edgemodelr’ can be installed ... [100s/100s] WARNING Found the following significant warnings: ggml/ggml-common.h:79:9: warning: keyword is hidden by macro definition [-Wkeyword-macro] llama/llama-quant.cpp:656:66: warning: absolute value function 'abs' given an argument of type 'const int64_t' (aka 'const long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] ./ggml/ggml-common.h:79:9: warning: keyword is hidden by macro definition [-Wkeyword-macro] See ‘/srv/hornik/tmp/CRAN_pretest/edgemodelr.Rcheck/00install.out’ for details. * used C++ compiler: ‘Debian clang version 19.1.7 (3+b2)’ * checking C++ specification ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... NOTE Non-standard file/directory found at top level: ‘CLAUDE.md’ * 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 ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] OK * checking whether startup messages can be suppressed ... [0s/0s] OK * checking use of S3 registration ... 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 ... [2s/2s] OK * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... WARNING Undocumented code objects: ‘edge_clean_cache’ ‘edge_set_verbose’ All user-level objects in a package should have documentation entries. See chapter ‘Writing R documentation files’ in the ‘Writing R Extensions’ manual. * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... NOTE File ‘edgemodelr/libs/edgemodelr.so’: Found ‘stderr’, possibly from ‘stderr’ (C) Objects: ‘bindings.o’, ‘ggml/ggml.o’, ‘ggml/ggml-quants.o’, ‘ggml/ggml-opt.o’, ‘llama/llama-grammar.o’, ‘llama/llama-impl.o’, ‘llama/unicode.o’, ‘ggml/ggml-cpu/ggml-cpu-c.o’, ‘ggml/ggml-cpu/unary-ops.o’ Found ‘stdout’, possibly from ‘stdout’ (C) Objects: ‘ggml/ggml.o’, ‘ggml/ggml-quants.o’, ‘llama/llama-grammar.o’, ‘llama/llama-quant.o’ Compiled code should not call entry points which might terminate R nor write to stdout/stderr instead of to the console, nor use Fortran I/O nor system RNGs nor [v]sprintf. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual. * checking examples ... [0s/0s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [11s/24s] ERROR Running ‘testthat.R’ [11s/24s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(edgemodelr) > > test_check("edgemodelr") Running on: Linux x86_64 Created cache directory: /tmp/RtmppLQj7w/working_dir/RtmpMxytuZ/test_cache_dir_12345 Downloading model... From: https://huggingface.co/fake/model/resolve/main/fake.gguf To: /tmp/RtmppLQj7w/working_dir/RtmpMxytuZ/test_cache_dir_12345/fake.gguf trying URL 'https://huggingface.co/fake/model/resolve/main/fake.gguf' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 29 100 29 0 0 227 0 --:--:-- --:--:-- --:--:-- 228 --2025-09-02 17:31:01-- https://huggingface.co/fake/model/resolve/main/fake.gguf Resolving huggingface.co (huggingface.co)... 13.32.110.28, 13.32.110.55, 13.32.110.77, ... Connecting to huggingface.co (huggingface.co)|13.32.110.28|:443... connected. HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed. Setting up TinyLlama-1.1B... Created cache directory: /tmp/check-CRAN-incoming-hornik/cache/R/edgemodelr Downloading model... From: https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf To: /tmp/check-CRAN-incoming-hornik/cache/R/edgemodelr/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf trying URL 'https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf' Content type 'binary/octet-stream' length 668788096 bytes (637.8 MB) ================================================== downloaded 637.8 MB Download completed successfully! Model size: 637.8MB Setting up TinyLlama-OpenOrca... Downloading model... From: https://huggingface.co/TheBloke/TinyLlama-1.1B-1T-OpenOrca-GGUF/resolve/main/tinyllama-1.1b-1t-openorca.Q4_K_M.gguf To: /tmp/check-CRAN-incoming-hornik/cache/R/edgemodelr/tinyllama-1.1b-1t-openorca.Q4_K_M.gguf trying URL 'https://huggingface.co/TheBloke/TinyLlama-1.1B-1T-OpenOrca-GGUF/resolve/main/tinyllama-1.1b-1t-openorca.Q4_K_M.gguf' Content type 'binary/octet-stream' length 667814368 bytes (636.9 MB) ================================================== downloaded 636.9 MB Download completed successfully! Model size: 636.9MB Setting up llama3.2-1b... Downloading model... From: https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q4_K_M.gguf To: /tmp/check-CRAN-incoming-hornik/cache/R/edgemodelr/Llama-3.2-1B-Instruct-Q4_K_M.gguf trying URL 'https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q4_K_M.gguf' Content type 'text/plain; charset=utf-8' length 807694464 bytes (770.3 MB) ================================================== downloaded 770.3 MB Download completed successfully! Model size: 770.3MB [ FAIL 4 | WARN 2 | SKIP 22 | PASS 266 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • No test model available for concurrency tests (1): 'test-error-handling.R:230:7' • No test model available for concurrent operations test (1): 'test-model-management.R:277:7' • No test model available for concurrent operations tests (1): 'test-integration.R:381:7' • No test model available for edge case tests (1): 'test-error-handling.R:200:7' • No test model available for end-to-end scenario tests (1): 'test-integration.R:305:7' • No test model available for exception safety tests (1): 'test-error-handling.R:398:7' • No test model available for integration tests (1): 'test-integration.R:51:7' • No test model available for memory constraint tests (1): 'test-error-handling.R:130:7' • No test model available for memory management tests (1): 'test-model-management.R:127:7' • No test model available for performance tests (1): 'test-integration.R:209:7' • No test model available for real model loading tests (1): 'test-model-loading.R:224:5' • No test model available for streaming stress tests (1): 'test-streaming.R:380:5' • No test model available for streaming tests (1): 'test-streaming.R:321:5' • No test model available for stress tests (1): 'test-integration.R:160:7' • No test model available for system integration tests (1): 'test-model-management.R:380:7' • No test model available for text completion tests (1): 'test-text-completion.R:331:5' • empty test (6): 'test-error-handling.R:1:1', 'test-integration.R:1:1', 'test-model-management.R:1:1', 'test-model-management.R:283:1', 'test-model-management.R:336:1', 'test-streaming.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-error-handling.R:5:5'): Invalid file paths are handled properly ── Error in `edge_load_model("does_not_exist.gguf")`: Model file not found: does_not_exist.gguf Try these options: 1. Download a model: edge_download_model('TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF', 'tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf') 2. Quick setup: edge_quick_setup('TinyLlama-1.1B') 3. List models: edge_list_models() Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-error-handling.R:5:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─edgemodelr::edge_load_model("does_not_exist.gguf") ── Error ('test-error-handling.R:36:5'): Invalid parameters are rejected ─────── Error in `edge_load_model(dummy_path, n_ctx = -1)`: Model file not found: dummy.gguf Try these options: 1. Download a model: edge_download_model('TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF', 'tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf') 2. Quick setup: edge_quick_setup('TinyLlama-1.1B') 3. List models: edge_list_models() Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-error-handling.R:36:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─base::suppressWarnings(edge_load_model(dummy_path, n_ctx = -1)) 8. │ └─base::withCallingHandlers(...) 9. └─edgemodelr::edge_load_model(dummy_path, n_ctx = -1) ── Error ('test-error-handling.R:238:5'): Resource cleanup after errors ──────── Error in `edge_load_model("nonexistent.gguf")`: Model file not found: nonexistent.gguf Try these options: 1. Download a model: edge_download_model('TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF', 'tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf') 2. Quick setup: edge_quick_setup('TinyLlama-1.1B') 3. List models: edge_list_models() Backtrace: ▆ 1. ├─testthat::expect_error(edge_load_model("nonexistent.gguf"), "Model file does not exist") at test-error-handling.R:238:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─edgemodelr::edge_load_model("nonexistent.gguf") ── Error ('test-model-loading.R:31:3'): edge_load_model handles invalid paths ── Error in `edge_load_model("nonexistent_model.gguf")`: Model file not found: nonexistent_model.gguf Try these options: 1. Download a model: edge_download_model('TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF', 'tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf') 2. Quick setup: edge_quick_setup('TinyLlama-1.1B') 3. List models: edge_list_models() Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-model-loading.R:31:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─edgemodelr::edge_load_model("nonexistent_model.gguf") [ FAIL 4 | WARN 2 | SKIP 22 | PASS 266 ] Error: Test failures Execution halted * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 2 WARNINGs, 3 NOTEs