Description Usage Arguments Details Value
A valid reference has restrictions on the special characters allowed (see details).
1 2 3 4 5 6 7 | assert_ref(
x,
level = 1,
msg_level = getOption("msgr.level"),
msg_types = getOption("msgr.types"),
log_path = getOption("msgr.log_path")
)
|
x |
(any) The object to test. |
level |
(integer, optional) The level of the message, from 1 to 10. Default: 1. |
msg_level |
(integer, optional) The maximum level of messages to output.
Default: set in the option |
msg_types |
(character, optional) The type to write or display. Must
either NULL or one or more from "INFO", "WARNING" or "ERROR". Default: set
in the option |
log_path |
(character, optional) The file path to the text log file. If
set to "", then no logs are written. Default: set in the option
|
Git imposes the following rules when naming references:
They can include slash /
for hierarchical (directory) grouping, but no
slash-separated component can begin with a dot .
or dash -
or end with
the sequence .lock
.
They cannot have two consecutive dots ..
anywhere.
They cannot have the special characters: space , tilde
~
, caret ^
,
or colon :
, question-mark ?
, asterisk *
, backslash \\
, or open
bracket \[
anywhere.
They cannot begin or end with a slash /
or contain multiple consecutive
slashes
They cannot end with a dot .
.
They cannot contain a sequence @\{
.
They cannot be the single character @
.
If assertion passes then TRUE
is returned. This allows you to make
multiple assertions separated by &
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.