as.data.frame.checkglobals | R Documentation |
Cast an S3-object of class "checkglobals"
to a data.frame.
## S3 method for class 'checkglobals'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
pattern,
which = c("global", "import"),
...
)
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:
|
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".
as.data.frame
## 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.