test_that("'avnotebooks()' works", {
namespace <- "foo"
name <- "bar"
expect_identical(
.avnotebooks_runtime_path(name),
path.expand(file.path("~", name, "edit"))
)
path <- with_mock(
avbucket = function(namespace, name)
paste("gs:/", namespace, name, sep="/"),
.avnotebooks_workspace_path(namespace, name)
)
expect_identical(path, "gs://foo/bar/notebooks")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.