Skip to content

add error message for class "difftime" #91

add error message for class "difftime"

add error message for class "difftime" #91

GitHub Actions / Unit Tests Summary failed Nov 8, 2024 in 0s

1 errors, 10 skipped, 29 pass in 9s

  1 files  ± 0   5 suites  ±0   9s ⏱️ -1s
 40 tests ± 0  29 ✅  - 11  10 💤 +10  0 ❌ ±0  1 🔥 +1 
107 runs   - 14  91 ✅  - 30  15 💤 +15  0 ❌ ±0  1 🔥 +1 

Results for commit 6ad2098. ± Comparison against earlier commit c992c19.

Annotations

Check failure on line 0 in listings

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

appropriate_error_message_returned_for_difftime_class (listings) with error

rlistings.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `as_listing(tmp_data, key_cols = c("USUBJID", "AGE"), disp_cols = "study_duration_secs",  ('test-listings.R:358:3')
Error in `as_listing(tmp_data, key_cols = c("USUBJID", "AGE"), disp_cols = "study_duration_secs", 
    main_title = "title", main_footer = "foot")`: One or more variables in the dataframe have class 'difftime'. Please convert to factor or character.
Backtrace:
    x
 1. +-... %>% ... at test-listings.R:358:3
 2. +-rlistings::split_into_pages_by_var(., "SEX", page_prefix = "Patient Subset - Sex")
 3. | \-checkmate::assert_class(lsting, "listing_df")
 4. |   \-checkmate::checkClass(x, classes, ordered, null.ok)
 5. \-rlistings::as_listing(...)