Skip to content

Add method argument to s_odds_ratio() and estimate_odds_ratio() #429

Add method argument to s_odds_ratio() and estimate_odds_ratio()

Add method argument to s_odds_ratio() and estimate_odds_ratio() #429

GitHub Actions / Unit Tests Summary failed Oct 7, 2024 in 0s

29 errors, 3 skipped, 820 pass in 1m 26s

    1 files     83 suites   1m 26s ⏱️
  852 tests   820 ✅  3 💤 0 ❌ 29 🔥
2 243 runs  2 190 ✅ 24 💤 0 ❌ 29 🔥

Results for commit a32387b.

Annotations

Check failure on line 0 in character(0)

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

_unnamed_ (character(0)) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-g_forest.R:12:1')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    ▆
 1. └─tern::extract_rsp_subgroups(...) at test-g_forest.R:12:1
 2.   └─tern::h_odds_ratio_subgroups_df(...)
 3.     └─tern::h_odds_ratio_df(...)
 4.       └─tern::s_odds_ratio(...)

Check failure on line 0 in h_response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

h_odds_ratio_df_functions_as_expected_with_valid_input_and_default_arguments (h_response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-h_response_subgroups.R:102:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::h_odds_ratio_df(...) at test-h_response_subgroups.R:102:3
 2.   \-tern::s_odds_ratio(...)

Check failure on line 0 in h_response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

h_odds_ratio_df_functions_as_expected_with_valid_input_and_non_default_arguments (h_response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-h_response_subgroups.R:114:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::h_odds_ratio_df(...) at test-h_response_subgroups.R:114:3
 2.   \-tern::s_odds_ratio(...)

Check failure on line 0 in h_response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

h_odds_ratio_df_functions_as_expected_with_strata (h_response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-h_response_subgroups.R:129:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. +-withr::with_options(...) at test-h_response_subgroups.R:129:3
 2. | \-base::force(code)
 3. \-tern::h_odds_ratio_df(...)
 4.   \-tern::s_odds_ratio(...)

Check failure on line 0 in h_response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

h_odds_ratio_subgroups_df_functions_as_expected_with_valid_input_and_default_arguments (h_response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-h_response_subgroups.R:161:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::h_odds_ratio_subgroups_df(...) at test-h_response_subgroups.R:161:3
 2.   \-tern::h_odds_ratio_df(...)
 3.     \-tern::s_odds_ratio(...)

Check failure on line 0 in h_response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

h_odds_ratio_subgroups_df_functions_as_expected_when_subgroups_is_NULL. (h_response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-h_response_subgroups.R:173:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::h_odds_ratio_subgroups_df(...) at test-h_response_subgroups.R:173:3
 2.   \-tern::h_odds_ratio_df(...)
 3.     \-tern::s_odds_ratio(...)

Check failure on line 0 in h_response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

h_odds_ratio_subgroups_df_functions_as_expected_with_strata (h_response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-h_response_subgroups.R:186:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. +-withr::with_options(...) at test-h_response_subgroups.R:186:3
 2. | \-base::force(code)
 3. \-tern::h_odds_ratio_subgroups_df(...)
 4.   \-tern::h_odds_ratio_df(...)
 5.     \-tern::s_odds_ratio(...)

Check failure on line 0 in h_response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

h_odds_ratio_subgroups_df_works_as_expected_with_groups_lists (h_response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-h_response_subgroups.R:207:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::h_odds_ratio_subgroups_df(...) at test-h_response_subgroups.R:207:3
 2.   \-tern::h_odds_ratio_df(...)
 3.     \-tern::s_odds_ratio(...)

Check failure on line 0 in odds_ratio

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

s_odds_ratio_estimates_right_OR_and_CI_unstratified_analysis_ (odds_ratio) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-odds_ratio.R:46:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::s_odds_ratio(...) at test-odds_ratio.R:46:3

Check failure on line 0 in odds_ratio

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

s_odds_ratio_estimates_right_OR_and_CI_stratified_analysis_ (odds_ratio) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-odds_ratio.R:65:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::s_odds_ratio(...) at test-odds_ratio.R:65:3

Check failure on line 0 in odds_ratio

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

estimate_odds_ratio_estimates_right_OR_and_CI_unstratified_analysis_ (odds_ratio) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors ('test-odds_ratio.R:106:3')
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors
	occured at (row) path: root
Backtrace:
    x
 1. +-... %>% build_table(df = data) at test-odds_ratio.R:106:3
 2. \-rtables::build_table(., df = data)
 3.   \-base::lapply(...)
 4.     \-rtables (local) FUN(X[[i]], ...)
 5.       \-rtables:::recursive_applysplit(...)
 6.         +-rtables:::.make_split_kids(...)
 7.         \-rtables:::.make_split_kids(...)
 8.           \-rtables (local) .local(spl, have_controws, make_lrow, ...)
 9.             \-rtables:::.make_analyzed_tab(...)

Check failure on line 0 in odds_ratio

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

estimate_odds_ratio_estimates_right_OR_and_CI_stratified_analysis_ (odds_ratio) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors ('test-odds_ratio.R:123:3')
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors
	occured at (row) path: root
Backtrace:
    x
 1. +-... %>% build_table(df = data) at test-odds_ratio.R:123:3
 2. \-rtables::build_table(., df = data)
 3.   \-base::lapply(...)
 4.     \-rtables (local) FUN(X[[i]], ...)
 5.       \-rtables:::recursive_applysplit(...)
 6.         +-rtables:::.make_split_kids(...)
 7.         \-rtables:::.make_split_kids(...)
 8.           \-rtables (local) .local(spl, have_controws, make_lrow, ...)
 9.             \-rtables:::.make_analyzed_tab(...)

Check failure on line 0 in odds_ratio

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

estimate_odds_ratio_works_with_strata_and_combined_groups (odds_ratio) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors ('test-odds_ratio.R:157:3')
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors
	occured at (row) path: root
Backtrace:
    x
 1. \-rtables::build_table(lyt = lyt, df = anl) at test-odds_ratio.R:157:3
 2.   \-base::lapply(...)
 3.     \-rtables (local) FUN(X[[i]], ...)
 4.       \-rtables:::recursive_applysplit(...)
 5.         +-rtables:::.make_split_kids(...)
 6.         \-rtables:::.make_split_kids(...)
 7.           \-rtables (local) .local(spl, have_controws, make_lrow, ...)
 8.             \-rtables:::.make_analyzed_tab(...)

Check failure on line 0 in odds_ratio

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

s_odds_ratio_method_argument_works (odds_ratio) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-odds_ratio.R:174:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::s_odds_ratio(...) at test-odds_ratio.R:174:3

Check failure on line 0 in odds_ratio

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

estimate_odds_ratio_method_argument_works (odds_ratio) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors ('test-odds_ratio.R:203:3')
Error: Error applying analysis function (var - rsp): $ operator is invalid for atomic vectors
	occured at (row) path: root
Backtrace:
    x
 1. \-rtables::build_table(lyt, df = dta) at test-odds_ratio.R:203:3
 2.   \-base::lapply(...)
 3.     \-rtables (local) FUN(X[[i]], ...)
 4.       \-rtables:::recursive_applysplit(...)
 5.         +-rtables:::.make_split_kids(...)
 6.         \-rtables:::.make_split_kids(...)
 7.           \-rtables (local) .local(spl, have_controws, make_lrow, ...)
 8.             \-rtables:::.make_analyzed_tab(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

extract_rsp_subgroups_functions_as_expected_with_valid_input_and_default_arguments (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:24:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:24:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

extract_rsp_subgroups_functions_as_expected_with_NULL_subgroups (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:36:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:36:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

extract_rsp_subgroups_works_as_expected_with_groups_lists (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:48:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:48:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

extract_rsp_subgroups_functions_as_expected_with_strata (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:73:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. +-withr::with_options(...) at test-response_subgroups.R:73:3
 2. | \-base::force(code)
 3. \-tern::extract_rsp_subgroups(...)
 4.   \-tern::h_odds_ratio_subgroups_df(...)
 5.     \-tern::h_odds_ratio_df(...)
 6.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

tabulate_rsp_subgroups_functions_as_expected_with_valid_input (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:110:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:110:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

tabulate_rsp_subgroups_correctly_calculates_column_indices (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:130:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:130:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

tabulate_rsp_subgroups_functions_as_expected_with_valid_input_extreme_values_in_OR_table (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:177:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:177:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

tabulate_rsp_subgroups_functions_as_expected_with_NULL_subgroups (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:193:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:193:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

tabulate_rsp_subgroups_functions_as_expected_when_0_obs_in_one_arm (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:213:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
     x
  1. +-base::suppressWarnings(...) at test-response_subgroups.R:213:3
  2. | \-base::withCallingHandlers(...)
  3. +-testthat::expect_warning(...)
  4. | \-testthat:::expect_condition_matching(...)
  5. |   \-testthat:::quasi_capture(...)
  6. |     +-testthat (local) .capture(...)
  7. |     | \-base::withCallingHandlers(...)
  8. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  9. \-tern::extract_rsp_subgroups(...)
 10.   \-tern::h_odds_ratio_subgroups_df(...)
 11.     \-tern::h_odds_ratio_df(...)
 12.       \-tern::s_odds_ratio(...)

Check failure on line 0 in response_subgroups

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

tabulate_rsp_subgroups_.formats_argument_works_as_expected (response_subgroups) with error

tern.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors ('test-response_subgroups.R:246:3')
Error in `y$or_ci$est`: $ operator is invalid for atomic vectors
Backtrace:
    x
 1. \-tern::extract_rsp_subgroups(...) at test-response_subgroups.R:246:3
 2.   \-tern::h_odds_ratio_subgroups_df(...)
 3.     \-tern::h_odds_ratio_df(...)
 4.       \-tern::s_odds_ratio(...)