CRAN Package Check Results for Package tidyndr

Last updated on 2022-10-15 08:00:25 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.1 7.17 82.01 89.18 ERROR
r-devel-linux-x86_64-debian-gcc 0.2.1 5.93 64.66 70.59 ERROR
r-devel-linux-x86_64-fedora-clang 0.2.1 119.54 ERROR
r-devel-linux-x86_64-fedora-gcc 0.2.1 117.83 ERROR
r-devel-windows-x86_64 0.2.1 37.00 124.00 161.00 ERROR
r-patched-linux-x86_64 0.2.1 6.83 79.10 85.93 ERROR
r-release-linux-x86_64 0.2.1 5.61 78.37 83.98 ERROR
r-release-macos-arm64 0.2.1 45.00 OK
r-release-macos-x86_64 0.2.1 76.00 OK
r-release-windows-x86_64 0.2.1 40.00 121.00 161.00 ERROR
r-oldrel-macos-arm64 0.2.1 44.00 OK
r-oldrel-macos-x86_64 0.2.1 68.00 OK
r-oldrel-windows-ix86+x86_64 0.2.1 13.00 120.00 133.00 ERROR

Check Details

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in 'tidyndr-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: hts_recent
    > ### Title: Subset Clients who had Recent Infection Test Done during a
    > ### period of Interest
    > ### Aliases: hts_recent
    >
    > ### ** Examples
    >
    > ### Line-list of clients offered recency testing
    > hts_recent_clients <- hts_recent(recency_example, from = "2021-07-01", to = "2021-10-31")
    >
    > hts_pos <- hts_tst_pos(recency_example) # identifies all hts_positive clients
    > # line-list positive clients offered recency testing in 'Okun' state
    > hts_recent(hts_pos, state = "Okun")
    Error in `validate_recent()`:
    ! state(s) is/are not contained in the supplied data. Check the spelling and/or case.
    Backtrace:
     x
     1. \-tidyndr::hts_recent(hts_pos, state = "Okun")
     2. \-tidyndr:::validate_recent(data, from, to, states, facilities)
     3. \-rlang::abort("state(s) is/are not contained in the supplied data. Check the spelling and/or case.")
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'spelling.R' [0s/0s]
     Running 'testthat.R' [14s/20s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     == Failed tests ================================================================
     -- Failure ('test-cot_cascade.R:2'): cot_cascade works fine --------------------
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in ‘tidyndr-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: hts_recent
    > ### Title: Subset Clients who had Recent Infection Test Done during a
    > ### period of Interest
    > ### Aliases: hts_recent
    >
    > ### ** Examples
    >
    > ### Line-list of clients offered recency testing
    > hts_recent_clients <- hts_recent(recency_example, from = "2021-07-01", to = "2021-10-31")
    >
    > hts_pos <- hts_tst_pos(recency_example) # identifies all hts_positive clients
    > # line-list positive clients offered recency testing in 'Okun' state
    > hts_recent(hts_pos, state = "Okun")
    Error in `validate_recent()`:
    ! state(s) is/are not contained in the supplied data. Check the spelling and/or case.
    Backtrace:
     ▆
     1. └─tidyndr::hts_recent(hts_pos, state = "Okun")
     2. └─tidyndr:::validate_recent(data, from, to, states, facilities)
     3. └─rlang::abort("state(s) is/are not contained in the supplied data. Check the spelling and/or case.")
    Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running ‘spelling.R’ [0s/1s]
     Running ‘testthat.R’ [11s/23s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure ('test-cot_cascade.R:2'): cot_cascade works fine ────────────────────
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in ‘tidyndr-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: hts_recent
    > ### Title: Subset Clients who had Recent Infection Test Done during a
    > ### period of Interest
    > ### Aliases: hts_recent
    >
    > ### ** Examples
    >
    > ### Line-list of clients offered recency testing
    > hts_recent_clients <- hts_recent(recency_example, from = "2021-07-01", to = "2021-10-31")
    >
    > hts_pos <- hts_tst_pos(recency_example) # identifies all hts_positive clients
    > # line-list positive clients offered recency testing in 'Okun' state
    > hts_recent(hts_pos, state = "Okun")
    Error in `validate_recent()`:
    ! state(s) is/are not contained in the supplied data. Check the spelling and/or case.
    Backtrace:
     ▆
     1. └─tidyndr::hts_recent(hts_pos, state = "Okun")
     2. └─tidyndr:::validate_recent(data, from, to, states, facilities)
     3. └─rlang::abort("state(s) is/are not contained in the supplied data. Check the spelling and/or case.")
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [18s/30s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure ('test-cot_cascade.R:2'): cot_cascade works fine ────────────────────
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.1
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [18s/21s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure ('test-cot_cascade.R:2'): cot_cascade works fine ────────────────────
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'spelling.R' [0s]
     Running 'testthat.R' [16s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (test-cot_cascade.R:2:3): cot_cascade works fine ────────────────────
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running ‘spelling.R’ [0s/0s]
     Running ‘testthat.R’ [14s/19s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure ('test-cot_cascade.R:2'): cot_cascade works fine ────────────────────
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running ‘spelling.R’ [0s/0s]
     Running ‘testthat.R’ [14s/20s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure ('test-cot_cascade.R:2'): cot_cascade works fine ────────────────────
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-release-linux-x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'spelling.R' [0s]
     Running 'testthat.R' [16s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure ('test-cot_cascade.R:2'): cot_cascade works fine ────────────────────
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-release-windows-x86_64

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in 'tidyndr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: hts_recent
    > ### Title: Subset Clients who had Recent Infection Test Done during a
    > ### period of Interest
    > ### Aliases: hts_recent
    >
    > ### ** Examples
    >
    > ### Line-list of clients offered recency testing
    > hts_recent_clients <- hts_recent(recency_example, from = "2021-07-01", to = "2021-10-31")
    >
    > hts_pos <- hts_tst_pos(recency_example) # identifies all hts_positive clients
    > # line-list positive clients offered recency testing in 'Okun' state
    > hts_recent(hts_pos, state = "Okun")
    Error in `validate_recent()`:
    ! state(s) is/are not contained in the supplied data. Check the spelling and/or case.
    Backtrace:
     x
     1. \-tidyndr::hts_recent(hts_pos, state = "Okun")
     2. \-tidyndr:::validate_recent(data, from, to, states, facilities)
     3. \-rlang::abort("state(s) is/are not contained in the supplied data. Check the spelling and/or case.")
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'spelling.R' [0s]
     Running 'testthat.R' [17s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(tidyndr)
     Attaching package: 'tidyndr'
     A package for analysis of the front-end patient-level data from the Nigeria National Data Repository.
     >
     > test_check("tidyndr")
     `curl` package not installed, falling back to using `url()`
    
     Three new variables created:
     [1] `date_lost`
     [2] `appointment_date
     [2] `current_status
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
    
     == Failed tests ================================================================
     -- Failure (test-cot_cascade.R:2:3): cot_cascade works fine --------------------
     cot_cascade(ndr_example, quarter = 1) (`actual`) not identical to {
     ...
     } (`expected`).
    
     actual vs expected
     tx_new tx_ml tx_ml_dead tx_ml_to tx_ml_iit iit_rate
     - actual[1, ] 0 0 0 0 0 0.000
     + expected[1, ] 39 60 2 2 56 8.272
     - actual[2, ] 0 0 0 0 0 0.000
     + expected[2, ] 230 302 21 22 259 7.813
     - actual[3, ] 0 0 0 0 0 0.000
     + expected[3, ] 283 373 18 20 335 7.793
     - actual[4, ] 0 0 0 0 0 0.000
     + expected[4, ] 191 240 18 17 205 7.113
     - actual[5, ] 0 0 0 0 0 0.000
     + expected[5, ] 743 975 59 61 855 7.652
    
     `actual$tx_new`: 0 0 0 0 0
     `expected$tx_new`: 39 230 283 191 743
    
     `actual$tx_ml`: 0 0 0 0 0
     `expected$tx_ml`: 60 302 373 240 975
    
     `actual$tx_ml_dead`: 0 0 0 0 0
     `expected$tx_ml_dead`: 2 21 18 18 59
    
     `actual$tx_ml_to`: 0 0 0 0 0
     `expected$tx_ml_to`: 2 22 20 17 61
    
     `actual$tx_ml_iit`: 0 0 0 0 0
     `expected$tx_ml_iit`: 56 259 335 205 855
    
     `actual$iit_rate`: 0 0 0 0 0
     `expected$iit_rate`: 8 8 8 7 8
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64