This line and several similar following have uncaught warnings flagged by testthat:
── Warning ('test-roc.R:338:2'): roc.data.frame reject invalid columns ─────────
This method uses non-standard evaluation (NSE). Did you want to use the `roc_` function instead?
Backtrace:
1. testthat::expect_error(roc(aSAH, outcomes, s100b), "Column")
at test-roc.R:338:8
7. pROC:::roc.data.frame(aSAH, outcomes, s100b)
at pROC/R/roc.R:21:2
── Warning ('test-roc.R:339:2'): roc.data.frame reject invalid columns ─────────
This method uses non-standard evaluation (NSE). Did you want to use the `roc_` function instead?
Backtrace:
1. testthat::expect_error(roc(aSAH, "outcomes", "s100b"), "Column")
at test-roc.R:339:8
7. pROC:::roc.data.frame(aSAH, "outcomes", "s100b")
at pROC/R/roc.R:21:2
── Warning ('test-roc.R:342:2'): roc.data.frame reject invalid columns ─────────
This method uses non-standard evaluation (NSE). Did you want to use the `roc_` function instead?
Backtrace:
1. testthat::expect_error(roc(aSAH, outcome, s100c), "Column")
at test-roc.R:342:8
7. pROC:::roc.data.frame(aSAH, outcome, s100c)
at pROC/R/roc.R:21:2
── Warning ('test-roc.R:343:2'): roc.data.frame reject invalid columns ─────────
This method uses non-standard evaluation (NSE). Did you want to use the `roc_` function instead?
Backtrace:
1. testthat::expect_error(roc(aSAH, "outcome", "s100c"), "Column")
at test-roc.R:343:8
7. pROC:::roc.data.frame(aSAH, "outcome", "s100c")
at pROC/R/roc.R:21:2
If the warning is intentional, we can nest the expectations:
https://github.com/xrobin/pROC/blob/edcd42d7f63210e51830e69b5528d968235edf37/tests/testthat/test-roc.R#L338
This line and several similar following have uncaught warnings flagged by testthat:
If the warning is intentional, we can nest the expectations: