as_vector.checkglobals | R Documentation |
Cast an S3-object of class "checkglobals"
to a list vector.
## S3 method for class 'checkglobals'
as_vector(x, pattern, which = c("global", "import"), ...)
x |
object inheriting from class |
pattern |
an optional regular expression. Only names
matching |
which |
a character vector, either |
... |
additional arguments to configure the output:
|
a list consisting of three character vectors:
global
, vector of global function/variable names.
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)
## include only selected imports
as_vector(chk, pattern = "coef", which = "import")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.