as_vector.checkglobalsi {checkglobals} | R Documentation |
Cast an S3-object of class "checkglobalsi"
to a list vector.
## S3 method for class 'checkglobalsi'
as_vector(x, pattern, ...)
x |
object inheriting from class |
pattern |
an optional regular expression. Only names
matching |
... |
additional arguments to configure the output:
|
a list consisting of two character vectors:
import
, vector of import function/variable names.
package
, vector of import package names.
## R-package from folder
chk <- checkglobals(
pkg = system.file(
"unit_tests", "pkg", "testpkg",
package = "checkglobals"
)
)
as_vector(chk$imports)