as.data.frame.checkglobals {checkglobals} | R Documentation |
Cast to data.frame
Description
Cast an S3-object of class "checkglobals"
to a data.frame.
Usage
## S3 method for class 'checkglobals'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
pattern,
which = c("global", "import"),
...
)
Arguments
x |
object inheriting from class |
row.names |
currently not used, included for compatibility with |
optional |
currently not used, included for compatibility with |
pattern |
an optional regular expression. Only names
matching |
which |
a character vector, either |
... |
additional arguments to configure the output:
|
Value
a data.frame with three character columns:
-
name
, the name of the global or imported function/variable. -
package
, the import package, only applies to imported functions/variables. -
type
, the type of the detected entity, either"global"
or "import".
See Also
Examples
## R-package from folder
chk <- checkglobals(
pkg = system.file(
"unit_tests", "pkg", "testpkg",
package = "checkglobals"
)
)
as.data.frame(chk)
## include only selected imports
as.data.frame(chk, pattern = "coef", which = "import")