R Under development (unstable) (2025-12-13 r89166 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. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(perumammals) perumammals 0.0.0.1 Taxonomic backbone: Pacheco et al. (2021) | Species: 573 Use pm_backbone_info() for full citation and details ℹ A orginal version of the mammal checklist may be available. Check https://doi.org/10.15381/rpb.v28i4.21019 > > test_check("perumammals") The species list (splist) contains 1 NA value(s) at position(s): 3. These will be excluded from matching. The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'Tremarctos' Saving _problems/test-pm_integration-22.R The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'SPECIES123' The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'GENUS-SPECIES' The species list (splist) contains 4 NA value(s) at position(s): 1, 2, 4, 6. These will be excluded from matching. The species list (splist) should only include binomial names. The following names were submitted at the genus level: '', '', '' Loaded peru_mammals database: 573 species Classified 50 input names Rank 1 (genus): 0 Rank 2 (binomial): 50 Starting hierarchical matching pipeline... Node 2 (Genus match): 10 matches Node 3 (Fuzzy genus): 20 matches Node 4 (Fuzzy species): 30 matches -- Validating name format -- -- MATCHING SUMMARY ------------------------------------------------------------ Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'AKODON' The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'PANTHERA' The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'PANTHERA', 'TREMARCTOS', 'PUMA' The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'SPECIESUNKNOWN' Loaded peru_mammals database: 573 species Classified 1 input names Rank 1 (genus): 0 Rank 2 (binomial): 1 Starting hierarchical matching pipeline... -- Validating name format -- -- MATCHING SUMMARY ------------------------------------------------------------ The species list (splist) should only include binomial names. The following names were submitted at the genus level: 'EUBALAENA', 'BALAENOPTERA', 'MEGAPTERA', 'LAMA', 'VICUGNA' [ FAIL 1 | WARN 5 | SKIP 1 | PASS 287 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • empty test (1): 'test-pm_dataset.R:157:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-pm_integration.R:22:5'): Flujo completo de matching funciona end-to-end ── Expected `original` to equal `matched`. Differences: `actual`: "Oligoryzomys sp. C" `expected`: "Oligoryzomys sp. c" [ FAIL 1 | WARN 5 | SKIP 1 | PASS 287 ] Error: ! Test failures. Execution halted