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
Annotations
Check failure on line 0 in listings
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(...)
Loading