tests/testthat.R

library(testthat)
library(AntClassify)

# Force non-interactive mode to prevent "Press Enter" prompts during CRAN checks
options(interactive = FALSE)

# Mock readline globally to ensure automated tests do not hang
assignInNamespace("readline", function(...) "", ns = "base")

# Execute all tests in the package
test_check("AntClassify")

# Restore readline to its original state (safety measure)
assignInNamespace("readline", base::readline, ns = "base")

Try the AntClassify package in your browser

Any scripts or data that you put into this service are public.

AntClassify documentation built on April 9, 2026, 9:08 a.m.