Nothing
test_that("comparison/equality assignment ops are working", {
x <- 1:3
x == 2 <- 4
expect_equal(x, c(1,4,3))
x <- 1:3
x != 2 <- 4
expect_equal(x, c(4,2,4))
x <- 1:3
x <= 2 <- 4
expect_equal(x, c(4,4,3))
x <- 1:3
x >= 2 <- 4
expect_equal(x, c(1,4,4))
x <- 1:3
x < 2 <- 4
expect_equal(x, c(4,2,3))
x <- 1:3
x > 2 <- 4
expect_equal(x, c(1,2,4))
})
test_that("<<- works in its original form", {
y <<- 4
expect_equal(y, 4)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.