test_that("arith operators are recognized", {
expect_is(eval_hybrid(iris, Sepal.Length + Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length - Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length * Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length / Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length %% Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length %/% Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length ^ Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length + Sepal.Width + Petal.Length), "hybrid")
})
test_that("compare operators are recognized", {
expect_is(eval_hybrid(iris, Sepal.Length == Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length != Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length > Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length < Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length >= Sepal.Width), "hybrid")
expect_is(eval_hybrid(iris, Sepal.Length <= Sepal.Width), "hybrid")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.