print.checkglobalsg | R Documentation |
"checkglobalsg"
objectPrint method for S3-objects of class "checkglobalsg"
characteristic to the "globals"
list element of "checkglobals"
objects returned by checkglobals
,
check_pkg
or check_source
.
## S3 method for class 'checkglobalsg'
print(x, format = "basic", pattern, ...)
x |
object inheriting from class |
format |
character, one of the following two choices:
|
pattern |
an optional regular expression. Only names
matching |
... |
additional arguments to configure the printed output. The following arguments can be specified:
|
Returns the object x
invisibly (via invisible
)
## R-package from folder
chk <- checkglobals(
pkg = system.file(
"unit_tests", "pkg", "testpkg",
package = "checkglobals"
)
)
chk$globals
## print globals with references to source code
print(chk$globals, format = "detail", maxRef = 99)
## print without cli-formatting
print(chk$globals, use_cli = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.