context("Checking copy")
test_that("copy_path copies to clipboard",{
x <- copy_path("foo/bar")
expect_equal(x, "foo/bar")
expect_equal(clipr::read_clip(), "foo/bar")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.