Nothing
context("If")
test_that("simple if statements", {
f <- function() { if (TRUE) "foo"; "bar"; "foobar" }
expect_equal(cyclocomp(f), 2)
f <- function() { "bar"; if (TRUE) "foo"; "bar"; "foobar" }
expect_equal(cyclocomp(f), 2)
f <- function() { if (TRUE) "foo" }
expect_equal(cyclocomp(f), 2)
f <- function() { if (TRUE) "foo" else "bar" }
expect_equal(cyclocomp(f), 2)
f <- function() { if (TRUE) "foo" else "bar"; "foobar" }
expect_equal(cyclocomp(f), 2)
f <- function() { "bar"; if (TRUE) "foo" else "bar" }
expect_equal(cyclocomp(f), 2)
})
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.