View source: R/as.rock_source.R
as.rock_source | R Documentation |
This function converts an object to a character vector and marks it as a ROCK source.
as.rock_source(x)
x |
The source contents. |
A character vector with class rock_source
.
exampleROCK <-
rock::as.rock_source(c(
"Some example text,",
"and some more. [[look_a_code]]",
"And the end."));
### This can then be processed by other {rock}
### functions, for example:
rock::prettify_source(
exampleROCK
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.