test_that("ojo_collect works in interactive mode", {
skip_on_runiverse()
expect_no_error({
ojo_tbl("case") |>
head(1) |>
ojo_collect()
})
expect_s3_class(
ojo_tbl("case") |>
head(1) |>
ojo_collect(),
"tbl_df"
)
withr::deferred_run(envir = ojo_env())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.