R Under development (unstable) (2025-02-20 r87772 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(mhqol) > > test_check("mhqol") [ FAIL 5 | WARN 14 | SKIP 0 | PASS 92 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-mhqol_LSS.R:19:3'): Test whether the function returns an error when there is a score above 3 in the data ── `mhqol_scores_to_states(...)` did not throw the expected error. ── Failure ('test-mhqol_scores_to_states.R:134:3'): Test whether the function returns an error when there is a score below zero in the data ── `mhqol_scores_to_states(...)` did not throw the expected error. ── Failure ('test-mhqol_scores_to_states.R:146:3'): Test whether the function returns an error when there is a score above 3 in the data ── `mhqol_scores_to_states(...)` did not throw the expected error. ── Error ('test-mhqol_states_to_scores.R:108:3'): Test whether when retain_old_variables = TRUE, the function also returns the original variables in the data ── Error in `validate_states(states, valid_states)`: Error: Column PH contains unexpected values: I have physical health problems Backtrace: ▆ 1. └─mhqol::mhqol_states_to_scores(...) at test-mhqol_states_to_scores.R:108:3 2. └─mhqol (local) validate_states(states, valid_states) ── Error ('test-mhqol_states_to_scores.R:138:3'): Test whether when retain_old_variables = FALSE, the function does not return the original variables in the data ── Error in `validate_states(states, valid_states)`: Error: Column PH contains unexpected values: I have physical health problems Backtrace: ▆ 1. └─mhqol::mhqol_states_to_scores(...) at test-mhqol_states_to_scores.R:138:3 2. └─mhqol (local) validate_states(states, valid_states) [ FAIL 5 | WARN 14 | SKIP 0 | PASS 92 ] Error: Test failures Execution halted