context("Observed")
test_that("Observed", {
expect_error(Observed(z <- 1))
y <- runif(5)
x <- runif(5)
ols <- lm(y ~ x)
expect_equal(Observed(ols), y)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.