CRAN Package Check Results for Maintainer ‘Luke Lockley <luke.lockley at btinternet.com>’

Last updated on 2025-11-15 02:53:38 CET.

Package ERROR OK
howzatR 3 10

Package howzatR

Current CRAN status: ERROR: 3, OK: 10

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [1s/1s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(howzatR) > > test_check("howzatR") Saving _problems/test-batting_basics-7.R Saving _problems/test-batting_basics-22.R [ FAIL 2 | WARN 0 | SKIP 0 | PASS 16 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-batting_basics.R:7:3'): bat_avg works ────────────────────────── Error in `expect(bat_avg(runs_scored = 50, no_dismissals = 2), 25)`: `ok` must be `TRUE` or `FALSE`, not the number 25. Backtrace: ▆ 1. └─testthat::expect(ok = bat_avg(runs_scored = 50, no_dismissals = 2)) at test-batting_basics.R:7:3 2. └─testthat:::check_bool(ok) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test-batting_basics.R:22:3'): bat_sr works ────────────────────────── Error in `expect(bat_sr(runs_scored = 250, balls_faced = 200), 125)`: `ok` must be `TRUE` or `FALSE`, not the number 125. Backtrace: ▆ 1. └─testthat::expect(ok = bat_sr(runs_scored = 250, balls_faced = 200)) at test-batting_basics.R:22:3 2. └─testthat:::check_bool(ok) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 16 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(howzatR) > > test_check("howzatR") Saving _problems/test-batting_basics-7.R Saving _problems/test-batting_basics-22.R [ FAIL 2 | WARN 0 | SKIP 0 | PASS 16 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-batting_basics.R:7:3'): bat_avg works ────────────────────────── Error in `expect(bat_avg(runs_scored = 50, no_dismissals = 2), 25)`: `ok` must be `TRUE` or `FALSE`, not the number 25. Backtrace: ▆ 1. └─testthat::expect(ok = bat_avg(runs_scored = 50, no_dismissals = 2)) at test-batting_basics.R:7:3 2. └─testthat:::check_bool(ok) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test-batting_basics.R:22:3'): bat_sr works ────────────────────────── Error in `expect(bat_sr(runs_scored = 250, balls_faced = 200), 125)`: `ok` must be `TRUE` or `FALSE`, not the number 125. Backtrace: ▆ 1. └─testthat::expect(ok = bat_sr(runs_scored = 250, balls_faced = 200)) at test-batting_basics.R:22:3 2. └─testthat:::check_bool(ok) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 16 ] Error: ! Test failures. Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc