pkg_srcrefs: Extract all the srcref objects of objects within a package...

View source: R/srcrefs.R

pkg_srcrefsR Documentation

Extract all the srcref objects of objects within a package namespace

Description

Extract all the srcref objects of objects within a package namespace

Usage

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)

Arguments

x

A package_coverage coverage object, from which the name of the package used is extracted.

Value

A list_of_srcref

See Also

as.data.frame.list_of_srcref

Other srcrefs: test_srcrefs(), trace_srcrefs()

Examples

pkg <- system.file("examplepkg", package = "covtracer")
install.packages(
  pkg,
  type = "source",
  repos = NULL,
  quiet = TRUE,
  INSTALL_opts = "--with-keep.source"
)
pkg_srcrefs("examplepkg")


covtracer documentation built on Sept. 12, 2024, 7:40 a.m.