Skip to content

add additional tests #66

add additional tests

add additional tests #66

GitHub Actions / Unit Tests Summary failed Aug 13, 2024 in 0s

6 errors, 2 skipped, 8 pass in 0s

 1 files  Β±0   5 suites  Β±0   0s ⏱️ Β±0s
16 tests Β±0   8 βœ… Β±0  2 πŸ’€ Β±0  0 ❌ Β±0  6 πŸ”₯ Β±0 
32 runsβ€Š Β±0  24 βœ… Β±0  2 πŸ’€ Β±0  0 ❌ Β±0  6 πŸ”₯ Β±0 

Results for commit baebf8c. ± Comparison against earlier commit 35d1531.

Annotations

Check failure on line 0 in predict_counterfactual

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

predict_counterfactual_works_for_guassian (predict_counterfactual) with error

RobinCar2.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `find_data(fit)`: could not find function "find_data" ('test-predict_counterfactual.R:2:3')
Error in `find_data(fit)`: could not find function "find_data"
Backtrace:
    x
 1. \-testthat::expect_snapshot(predict_counterfactual(fit_glm, "treatment")) at test-predict_counterfactual.R:2:3
 2.   \-rlang::cnd_signal(state$error)

Check failure on line 0 in predict_counterfactual

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

predict_counterfactual_works_for_binomial (predict_counterfactual) with error

RobinCar2.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `find_data(fit)`: could not find function "find_data" ('test-predict_counterfactual.R:10:3')
Error in `find_data(fit)`: could not find function "find_data"
Backtrace:
    x
 1. \-testthat::expect_snapshot(predict_counterfactual(fit_binom, "treatment")) at test-predict_counterfactual.R:10:3
 2.   \-rlang::cnd_signal(state$error)

Check failure on line 0 in predict_counterfactual

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

predict_counterfactual_works_if_contrast_are_non_standard (predict_counterfactual) with error

RobinCar2.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `find_data(fit)`: could not find function "find_data" ('test-predict_counterfactual.R:17:3')
Error in `find_data(fit)`: could not find function "find_data"
Backtrace:
     x
  1. +-testthat::expect_silent(...) at test-predict_counterfactual.R:17:3
  2. | \-testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
  3. |   +-testthat (local) .capture(...)
  4. |   | +-withr::with_output_sink(...)
  5. |   | | \-base::force(code)
  6. |   | +-base::withCallingHandlers(...)
  7. |   | \-base::withVisible(code)
  8. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  9. +-RobinCar2::predict_counterfactual(fit, treatment ~ 1)
 10. \-RobinCar2:::predict_counterfactual.glm(fit, treatment ~ 1)
 11.   \-RobinCar2:::predict_counterfactual.lm(...)
 12.     \-checkmate::assert_data_frame(data)
 13.       \-checkmate::checkDataFrame(...)
 14.         \-... %and% checkListTypes(x, types)
 15.           \-base::isTRUE(lhs)

Check failure on line 0 in treatment_effect

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

treatment_effect_works_as_expected (treatment_effect) with error

RobinCar2.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `find_data(fit)`: could not find function "find_data" ('test-treatment_effect.R:88:3')
Error in `find_data(fit)`: could not find function "find_data"
Backtrace:
    x
 1. +-RobinCar2::predict_counterfactual(fit_binom, treatment ~ s1) at test-treatment_effect.R:88:3
 2. \-RobinCar2:::predict_counterfactual.glm(...)
 3.   \-RobinCar2:::predict_counterfactual.lm(...)
 4.     \-checkmate::assert_data_frame(data)
 5.       \-checkmate::checkDataFrame(...)
 6.         \-... %and% checkListTypes(x, types)
 7.           \-base::isTRUE(lhs)

Check failure on line 0 in variance

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

vcovHC_works (variance) with error

RobinCar2.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `find_data(fit)`: could not find function "find_data" ('test-variance.R:2:3')
Error in `find_data(fit)`: could not find function "find_data"
Backtrace:
    x
 1. +-RobinCar2::predict_counterfactual(fit_binom, treatment ~ s1) at test-variance.R:2:3
 2. \-RobinCar2:::predict_counterfactual.glm(...)
 3.   \-RobinCar2:::predict_counterfactual.lm(...)
 4.     \-checkmate::assert_data_frame(data)
 5.       \-checkmate::checkDataFrame(...)
 6.         \-... %and% checkListTypes(x, types)
 7.           \-base::isTRUE(lhs)

Check failure on line 0 in variance

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

vcovANHECOVA_works (variance) with error

RobinCar2.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `find_data(fit)`: could not find function "find_data" ('test-variance.R:9:3')
Error in `find_data(fit)`: could not find function "find_data"
Backtrace:
    x
 1. +-RobinCar2::predict_counterfactual(fit_binom, treatment ~ s1) at test-variance.R:9:3
 2. \-RobinCar2:::predict_counterfactual.glm(...)
 3.   \-RobinCar2:::predict_counterfactual.lm(...)
 4.     \-checkmate::assert_data_frame(data)
 5.       \-checkmate::checkDataFrame(...)
 6.         \-... %and% checkListTypes(x, types)
 7.           \-base::isTRUE(lhs)