Skip to content

211 [.teal_data S3 method #212

211 [.teal_data S3 method

211 [.teal_data S3 method #212

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

3 errors, 4 fail, 160 pass in 1s

  1 files   14 suites   1s ⏱️
167 tests 160 ✅ 0 💤 4 ❌ 3 🔥
223 runs  215 ✅ 0 💤 5 ❌ 3 🔥

Results for commit d629a04.

Annotations

Check failure on line 0 in extract

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

_._handles_empty_names (extract) with error

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in ``[.teal_data`(data, character(0))`: no slot of name "join_keys" for this object of class "qenv" ('test-extract.R:3:3')
Error in ``[.teal_data`(data, character(0))`: no slot of name "join_keys" for this object of class "qenv"
Backtrace:
     ▆
  1. ├─testthat::expect_warning(...) at test-extract.R:3:3
  2. │ └─testthat:::quasi_capture(...)
  3. │   ├─testthat (local) .capture(...)
  4. │   │ └─base::withCallingHandlers(...)
  5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  6. ├─testthat::expect_equal(data[character(0)], teal_data())
  7. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
  8. │   └─rlang::eval_bare(expr, quo_get_env(quo))
  9. ├─data[character(0)]
 10. └─teal.data:::`[.teal_data`(data, character(0))

Check failure on line 0 in extract

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

_._handles_names_as_NA_character_ (extract) with error

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in ``[.teal_data`(data, NA_character_)`: no slot of name "join_keys" for this object of class "qenv" ('test-extract.R:10:3')
Error in ``[.teal_data`(data, NA_character_)`: no slot of name "join_keys" for this object of class "qenv"
Backtrace:
     ▆
  1. ├─testthat::expect_warning(...) at test-extract.R:10:3
  2. │ └─testthat:::quasi_capture(...)
  3. │   ├─testthat (local) .capture(...)
  4. │   │ └─base::withCallingHandlers(...)
  5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  6. ├─testthat::expect_equal(data[NA_character_], teal_data())
  7. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
  8. │   └─rlang::eval_bare(expr, quo_get_env(quo))
  9. ├─data[NA_character_]
 10. └─teal.data:::`[.teal_data`(data, NA_character_)

Check warning on line 0 in extract

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

_._throws_warning_if_names_is_NULL (extract) failed

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
`data[NULL]` threw an error with unexpected message. ('test-extract.R:17:3')
`data[NULL]` threw an error with unexpected message.
Expected match: "Assertion on 'names' failed: Must be of type 'character', not 'NULL'."
Actual message: "Assertion on 'names' failed: Must inherit from class 'character', but has class 'NULL'."
Backtrace:
     ▆
  1. ├─testthat::expect_error(data[NULL], "Assertion on 'names' failed: Must be of type 'character', not 'NULL'.") at test-extract.R:17:3
  2. │ └─testthat:::quasi_capture(...)
  3. │   ├─testthat (local) .capture(...)
  4. │   │ └─base::withCallingHandlers(...)
  5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  6. ├─data[NULL]
  7. ├─teal.data:::`[.teal_data`(data, NULL)
  8. ├─base::NextMethod("`[`", x)
  9. └─teal.code:::`[.qenv`(data, NULL)
 10.   └─checkmate::assert_class(names, "character")
 11.     └─checkmate::makeAssertion(x, res, .var.name, add)
 12.       └─checkmate:::mstop(...)

Check warning on line 0 in extract

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

_._thorws_warnings_if_names_is_numeric (extract) failed

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
`data[1]` threw an error with unexpected message. ('test-extract.R:22:3')
`data[1]` threw an error with unexpected message.
Expected match: "Assertion on 'names' failed: Must be of type 'character', not 'double'."
Actual message: "Assertion on 'names' failed: Must inherit from class 'character', but has class 'numeric'."
Backtrace:
     ▆
  1. ├─testthat::expect_error(data[1], "Assertion on 'names' failed: Must be of type 'character', not 'double'.") at test-extract.R:22:3
  2. │ └─testthat:::quasi_capture(...)
  3. │   ├─testthat (local) .capture(...)
  4. │   │ └─base::withCallingHandlers(...)
  5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  6. ├─data[1]
  7. ├─teal.data:::`[.teal_data`(data, 1)
  8. ├─base::NextMethod("`[`", x)
  9. └─teal.code:::`[.qenv`(data, 1)
 10.   └─checkmate::assert_class(names, "character")
 11.     └─checkmate::makeAssertion(x, res, .var.name, add)
 12.       └─checkmate:::mstop(...)

Check warning on line 0 in teal_data

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

1 out of 2 runs failed: empty_teal_data_returns_empty_code_id_wartnings_and_messages_and_verified_TRUE (teal_data)

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
teal_data()@code not identical to character(0). ('test-teal_data.R:6:3')
teal_data()@code not identical to character(0).
Modes: list, character
Length mismatch: comparison on first 0 components

Check failure on line 0 in teal_data

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

1 out of 2 runs with error: empty_teal_data_returns_empty_code_id_wartnings_and_messages_and_verified_TRUE (teal_data)

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `eval_bare(expr, quo_get_env(quo))`: no slot of name "id" for this object of class "teal_data" ('test-teal_data.R:7:3')
Error in `eval_bare(expr, quo_get_env(quo))`: no slot of name "id" for this object of class "teal_data"
Backtrace:
    ▆
 1. └─testthat::expect_identical(teal_data()@id, integer(0)) at test-teal_data.R:7:3
 2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
 3.     └─rlang::eval_bare(expr, quo_get_env(quo))

Check warning on line 0 in teal_data

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

teal_data_code_unfolds_code_block_wrapped_in_ (teal_data) failed

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
...@code not identical to "iris1 <- iris". ('test-teal_data.R:81:3')
...@code not identical to "iris1 <- iris".
Modes: list, character
Component 1: Attributes: < Modes: list, NULL >
Component 1: Attributes: < Lengths: 2, 0 >
Component 1: Attributes: < names for target but not for current >
Component 1: Attributes: < current is not list-like >

Check warning on line 0 in teal_data

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

teal_data_code_is_concatenated_into_single_string (teal_data) failed

teal.data.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
teal_data(iris1 = iris, code = c("iris1 <- iris", "iris2 <- iris1"))@code not identical to "iris1 <- iris\niris2 <- iris1". ('test-teal_data.R:90:3')
teal_data(iris1 = iris, code = c("iris1 <- iris", "iris2 <- iris1"))@code not identical to "iris1 <- iris\niris2 <- iris1".
Modes: list, character
Length mismatch: comparison on first 1 components
Component 1: Attributes: < Modes: list, NULL >
Component 1: Attributes: < Lengths: 2, 0 >
Component 1: Attributes: < names for target but not for current >
Component 1: Attributes: < current is not list-like >
Component 1: 1 string mismatch