We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 168fb93 commit 9e30b6bCopy full SHA for 9e30b6b
tests/testthat/test_convert_data.R
@@ -620,3 +620,10 @@ test_that("bad args", {
620
)
621
})
622
623
+## -----------------------------------------------------------------------------
624
+
625
+test_that("convert to matrix", {
626
+ expect_true(inherits(parsnip::as_matrix(mtcars), "matrix"))
627
+ expect_true(inherits(parsnip::as_matrix(tibble::as_tibble(mtcars)), "matrix"))
628
+ expect_true(inherits(parsnip::as_matrix(as.matrix(mtcars)), "matrix"))
629
+})
0 commit comments