R Under development (unstable) (2026-08-31 r90457 ucrt) -- "Unsuffered Consequences" 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(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") ************************************************* Starting AntClassify ************************************************* >>> Validating species names via GBIF Starting validation of species names via GBIF... Processing [1/10]: Pheidole megacephala Processing [2/10]: Strumigenys emmae Processing [3/10]: Paratrechina longicornis Processing [4/10]: Hypoponera leninei Processing [5/10]: Camponotus fallatus Processing [6/10]: Ectatomma brunneum Processing [7/10]: Ectatomma permagnum Processing [8/10]: Pheidole aberrans Processing [9/10]: Pheidole fimbriata Processing [10/10]: Pheidole obscurithorax All species names were successfully validated (exact match in GBIF). >>> Running guild classification Step 1: Preparing community data... Step 2: Matching species to functional guilds... Guild classification results (first 6 rows): species abundance percentage 1 Pheidole megacephala 10 30.303030 2 Strumigenys emmae 5 15.151515 3 Paratrechina longicornis 8 24.242424 4 Hypoponera leninei 3 9.090909 5 Camponotus fallatus 2 6.060606 6 Ectatomma brunneum 1 3.030303 antclassify_guild 1 Leaf litter omnivores and scavengers (cryptic or non-cryptic) 2 Specialist litter or soil predators (cryptic) 3 Generalist omnivores (dominant or opportunistic in soil, leaf litter, or arboreal) 4 Specialist litter or soil predators (cryptic) 5 Generalist omnivores (dominant or opportunistic in soil, leaf litter, or arboreal) 6 Generalist predators (dominant or cryptic in soil or leaf litter) silva_guild 1 Unidentified Guild 2 Unidentified Guild 3 Unidentified Guild 4 Small, generalist, low-agility ponerines living in the leaf litter 5 Unidentified Guild 6 Generalist predatory ectaheteromorphs delabie_guild 1 Omnivorous soil-and-litter species 2 Cryptic species (Small specialized predators) 3 Unidentified Guild 4 Cryptic species (Small specialized predators) 5 Omnivorous soil-and-litter species 6 Large Ponerinae (Large epigeic predators) silvestre_guild 1 Dominant soil omnivores 2 Unidentified Guild 3 Soil and vegetation opportunists 4 Cryptic Ponerinae 5 Generalist patrolling Camponotines 6 Unidentified Guild Step 3: Generating plots... Guild classification sources: Delabie et al. (2000), Silvestre et al. (2003), Silva et al. (2015), and AntClassify internal database. Full citations are available in the package documentation: ?assign_guild_ants >>> Checking exotic species Step 1: Preparing community data... Step 2: Generating results... ******************************************************************************** EXOTIC SPECIES DETECTED: species abundance percentage 1 Pheidole megacephala 10 30.30303 2 Strumigenys emmae 5 15.15152 3 Paratrechina longicornis 8 24.24242 DATA SOURCE: Vieira, V. B. (2025). 'Quem são e onde estão as formigas exóticas do Brasil?' Master's thesis, Universidade Federal do Paraná, Curitiba, Brazil. Full reference available in the package documentation: ?check_exotic_ants ******************************************************************************** >>> Checking Atlantic Forest endemic species ********************************************************************************** ATTENTION: This function identifies endemic species of the BRAZILIAN ATLANTIC FOREST. If your data collection did not occur within this biome, this analysis may not be appropriate for your study. ********************************************************************************** Step 1: Preparing community data... Step 2: Generating results... ******************************************************************************** ENDEMIC SPECIES DETECTED (ATLANTIC FOREST): species abundance percentage 1 Hypoponera leninei 3 9.090909 2 Camponotus fallatus 2 6.060606 DATA SOURCE: Silva, N. S., Goncalves, D. C. de O., Wazema, C. T., Barbosa, D. A., Prado, L. P. do, Andrade-Silva, J., Fernandes, T. T., Silva, R. R., & Morini, M. S. de C. (2025). 'Endemism and vulnerability of ants in the phytophysiognomies of the Brazilian Atlantic Forest'. In: Brazilian Myrmecology: Exploring the World's Richest Ant Fauna (Chapter 16). Editora Cientifica Digital. DOI: 10.37885/250920259. Full reference available in the package documentation: ?check_endemic_atlantic_ants ******************************************************************************** >>> Checking Atlantic Forest rarity patterns ******************************************************************************** ATTENTION: This function identifies rare ant species and their rarity forms. This classification is specific to the Brazilian Atlantic Forest and may not be appropriate for other biomes. ******************************************************************************** Step 1: Preparing community data and rarity database... Step 2: Generating results... ******************************************************************************** RARE SPECIES DETECTED: species rarity_form abundance percentage 1 Ectatomma brunneum Form 3 1 3.030303 2 Ectatomma permagnum Form 3 1 3.030303 3 Pheidole aberrans Form 2 1 3.030303 4 Pheidole fimbriata Form 2 1 3.030303 5 Pheidole obscurithorax Form 2 1 3.030303 DATA SOURCE AND REFERENCE: Silva, N. S., Maciel, E. A., Prado, L. P., Silva, O. G., Barbosa, D. A., Andrade-Silva, J., ... & Morini, M. S. (2024). 'Ant rarity and vulnerability in Brazilian Atlantic Forest fragments.' Biological Conservation, 296, 110640. ******************************************************************************** *********************************************** AntClassify finished successfully ************************************************* ************************************************* Starting AntClassify ************************************************* >>> Validating species names via GBIF Starting validation of species names via GBIF... Processing [1/10]: Pheidole megacephala Processing [2/10]: Strumigenys emmae Processing [3/10]: Paratrechina longicornis Processing [4/10]: Hypoponera leninei Processing [5/10]: Camponotus fallatus Processing [6/10]: Ectatomma brunneum Processing [7/10]: Ectatomma permagnum Processing [8/10]: Pheidole aberrans Processing [9/10]: Pheidole fimbriata Processing [10/10]: Pheidole obscurithorax All species names were successfully validated (exact match in GBIF). >>> Running guild classification Step 1: Preparing community data... Step 2: Matching species to functional guilds... Guild classification results (first 6 rows): species abundance percentage 1 Pheidole megacephala 10 30.303030 2 Strumigenys emmae 5 15.151515 3 Paratrechina longicornis 8 24.242424 4 Hypoponera leninei 3 9.090909 5 Camponotus fallatus 2 6.060606 6 Ectatomma brunneum 1 3.030303 antclassify_guild 1 Leaf litter omnivores and scavengers (cryptic or non-cryptic) 2 Specialist litter or soil predators (cryptic) 3 Generalist omnivores (dominant or opportunistic in soil, leaf litter, or arboreal) 4 Specialist litter or soil predators (cryptic) 5 Generalist omnivores (dominant or opportunistic in soil, leaf litter, or arboreal) 6 Generalist predators (dominant or cryptic in soil or leaf litter) silva_guild 1 Unidentified Guild 2 Unidentified Guild 3 Unidentified Guild 4 Small, generalist, low-agility ponerines living in the leaf litter 5 Unidentified Guild 6 Generalist predatory ectaheteromorphs delabie_guild 1 Omnivorous soil-and-litter species 2 Cryptic species (Small specialized predators) 3 Unidentified Guild 4 Cryptic species (Small specialized predators) 5 Omnivorous soil-and-litter species 6 Large Ponerinae (Large epigeic predators) silvestre_guild 1 Dominant soil omnivores 2 Unidentified Guild 3 Soil and vegetation opportunists 4 Cryptic Ponerinae 5 Generalist patrolling Camponotines 6 Unidentified Guild Step 3: Generating plots... Guild classification sources: Delabie et al. (2000), Silvestre et al. (2003), Silva et al. (2015), and AntClassify internal database. Full citations are available in the package documentation: ?assign_guild_ants >>> Checking exotic species Step 1: Preparing community data... Step 2: Generating results... ******************************************************************************** EXOTIC SPECIES DETECTED: species abundance percentage 1 Pheidole megacephala 10 30.30303 2 Strumigenys emmae 5 15.15152 3 Paratrechina longicornis 8 24.24242 DATA SOURCE: Vieira, V. B. (2025). 'Quem são e onde estão as formigas exóticas do Brasil?' Master's thesis, Universidade Federal do Paraná, Curitiba, Brazil. Full reference available in the package documentation: ?check_exotic_ants ******************************************************************************** >>> Checking Atlantic Forest endemic species ********************************************************************************** ATTENTION: This function identifies endemic species of the BRAZILIAN ATLANTIC FOREST. If your data collection did not occur within this biome, this analysis may not be appropriate for your study. ********************************************************************************** Step 1: Preparing community data... Step 2: Generating results... ******************************************************************************** ENDEMIC SPECIES DETECTED (ATLANTIC FOREST): species abundance percentage 1 Hypoponera leninei 3 9.090909 2 Camponotus fallatus 2 6.060606 DATA SOURCE: Silva, N. S., Goncalves, D. C. de O., Wazema, C. T., Barbosa, D. A., Prado, L. P. do, Andrade-Silva, J., Fernandes, T. T., Silva, R. R., & Morini, M. S. de C. (2025). 'Endemism and vulnerability of ants in the phytophysiognomies of the Brazilian Atlantic Forest'. In: Brazilian Myrmecology: Exploring the World's Richest Ant Fauna (Chapter 16). Editora Cientifica Digital. DOI: 10.37885/250920259. Full reference available in the package documentation: ?check_endemic_atlantic_ants ******************************************************************************** >>> Checking Atlantic Forest rarity patterns ******************************************************************************** ATTENTION: This function identifies rare ant species and their rarity forms. This classification is specific to the Brazilian Atlantic Forest and may not be appropriate for other biomes. ******************************************************************************** Step 1: Preparing community data and rarity database... Step 2: Generating results... ******************************************************************************** RARE SPECIES DETECTED: species rarity_form abundance percentage 1 Ectatomma brunneum Form 3 1 3.030303 2 Ectatomma permagnum Form 3 1 3.030303 3 Pheidole aberrans Form 2 1 3.030303 4 Pheidole fimbriata Form 2 1 3.030303 5 Pheidole obscurithorax Form 2 1 3.030303 DATA SOURCE AND REFERENCE: Silva, N. S., Maciel, E. A., Prado, L. P., Silva, O. G., Barbosa, D. A., Andrade-Silva, J., ... & Morini, M. S. (2024). 'Ant rarity and vulnerability in Brazilian Atlantic Forest fragments.' Biological Conservation, 296, 110640. ******************************************************************************** *********************************************** AntClassify finished successfully ************************************************* [ FAIL 0 | WARN 0 | SKIP 0 | PASS 9 ] > > # Restore readline to its original state (safety measure) > assignInNamespace("readline", base::readline, ns = "base") > > proc.time() user system elapsed 4.62 0.29 14.12