Description Usage Arguments Examples
View the result of the regular expression when applied to the given text.
The default behavior renders the result as HTML and opens the file in
the RStudio viewer pane. If render
is FALSE
, the HTML itself is returned.
If the output is destined for a knitr document, set knitr
to TRUE
.
1 2 3 4 5 6 7 8 9 |
text |
Text to search |
pattern |
Regex pattern to look for |
... |
Arguments passed on to
|
render |
Render results as HTML? |
escape |
Escape HTML-related characters in |
exact |
Should the regex pattern be displayed as entered by the user
into R console or source (default)? When |
result_only |
Should only the result be displayed? If |
1 | view_regex("example", "amp", render = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.