as.character.checkglobals {checkglobals} | R Documentation |
Cast to character
Description
Cast an S3-object of class "checkglobals"
to a character vector.
Usage
## S3 method for class 'checkglobals'
as.character(x, pattern, which = c("global", "import"), ...)
Arguments
x |
object inheriting from class |
pattern |
an optional regular expression. Only names
matching |
which |
a character vector, either |
... |
additional arguments to configure the output:
|
Value
a character vector containing the names of the global or imported function/variables.
See Also
Examples
## R-package from folder
chk <- checkglobals(
pkg = system.file(
"unit_tests", "pkg", "testpkg",
package = "checkglobals"
)
)
as.character(chk)
## include only imports
as.character(chk, which = "import")