as_vector.checkglobalsg {checkglobals} | R Documentation |
Cast to list vector
Description
Cast an S3-object of class "checkglobalsg"
to a list vector.
Usage
## S3 method for class 'checkglobalsg'
as_vector(x, pattern, ...)
Arguments
x |
object inheriting from class |
pattern |
an optional regular expression. Only names
matching |
... |
additional arguments to configure the output:
|
Value
a list consisting of one character vector:
-
global
, vector of global function/variable names.
See Also
Examples
## R-package from folder
chk <- checkglobals(
pkg = system.file(
"unit_tests", "pkg", "testpkg",
package = "checkglobals"
)
)
as_vector(chk$globals)
[Package checkglobals version 0.1.0 Index]