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
srcref
objects, passed using the names ofx
ifuse.names = TRUE
- srcref
srcref
objects ifexpand.srcrefs = FALSE
- srcfile, line1, byte1, line2, col1, col2, parsed1, parsed2
The
srcref
file location if it can be determined. If an absolute path can't be found, only the base file name provided in thesrcref
object and the numeric components of thesrcref
objects 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"))