clean_output | R Documentation |
This function extracts the content from a given text string that is enclosed between the '“'' markers. It can be used to extract any kind of code or text content.
clean_output(text)
text |
A character string containing the code or text content with '“'' markers. |
A character string containing the extracted code or text content.
Ulrich Matter umatter@protonmail.com
code_text <- "```
example_code <- function(x) {
return(x * 2)
}
```"
clean_output(code_text)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.