insert_anchor | R Documentation |
Insert a hash anchor
insert_anchor(enclosing_start = "#<", enclosing_end = ">#",
length_random_input = .Machine$integer.max, ...)
enclosing_start |
A string that specifies the left-hand side enclosing of the hash |
enclosing_end |
A string that specifies the right-hand-side enclosing of
the hash. If |
length_random_input |
A number giving the range from which to draw a random number. |
... |
further arguments to be passed to and from other methods, in in particular to digest |
The function draws a random number using sample from the range of
length_random_input
. Then, this number is hashed by calling the
digest
hash-function from the digest
package. This hash
is then wrapped between enclosing_start
and enclosing_end
.
## Not run:
# RStudio needs to run for this
insert_anchor(enclosing_start = "#!")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.