pkg_srcrefs | R Documentation |
Extract all the srcref objects of objects within a package namespace
pkg_srcrefs(x)
## S3 method for class 'environment'
pkg_srcrefs(x)
## S3 method for class 'character'
pkg_srcrefs(x)
## S3 method for class 'coverage'
pkg_srcrefs(x)
x |
A |
A list_of_srcref
as.data.frame.list_of_srcref
Other srcrefs:
test_srcrefs()
,
trace_srcrefs()
pkg <- system.file("examplepkg", package = "covtracer")
install.packages(
pkg,
type = "source",
repos = NULL,
quiet = TRUE,
INSTALL_opts = "--with-keep.source"
)
pkg_srcrefs("examplepkg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.