Nothing
# get_pkg_name ----
test_that("Able to extract package name from pkg::fn call", {
expect_identical(get_pkg_name(str2lang("rlang::sym('foo')")), "rlang")
})
test_that("Able to extract package name from unnamespaced function call", {
expect_identical(get_pkg_name(str2lang("repro_chunk('foo')")), "shinyreprex")
})
test_that("When extract package from function call, base R packages are ignored", {
expect_null(get_pkg_name(str2lang("nzchar('foo')")))
})
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.