| as.data.frame.list_of_srcref {covtracer} | R Documentation |
Coerce a list_of_srcref object to a data.frame
Description
Coerce a list_of_srcref object to a data.frame
Usage
## S3 method for class 'list_of_srcref'
as.data.frame(
x,
...,
use.names = TRUE,
expand.srcref = FALSE,
row.names = NULL
)
Arguments
x |
A |
... |
Additional arguments unused |
use.names |
A |
expand.srcref |
A |
row.names |
|
Value
A data.frame with one record per srcref and variables:
- name
Names of the
srcrefobjects, passed using the names ofxifuse.names = TRUE- srcref
srcrefobjects ifexpand.srcrefs = FALSE- srcfile, line1, byte1, line2, col1, col2, parsed1, parsed2
The
srcreffile location if it can be determined. If an absolute path can't be found, only the base file name provided in thesrcrefobject and the numeric components of thesrcrefobjects ifexpand.srcrefs = TRUE
Examples
pkg <- system.file("examplepkg", package = "covtracer")
install.packages(
pkg,
type = "source",
repos = NULL,
quiet = TRUE,
INSTALL_opts = "--with-keep.source"
)
as.data.frame(pkg_srcrefs("examplepkg"))