Nothing
library(litedown)
fuse(text = c('```{r}', '1 + 1', '```'), output = 'markdown')
``` {.r}
1 + 1
```
```
#> [1] 2
```
fuse(text = 'Value is `{r} 1 + 1`.', output = 'markdown')
Value is 2.
fuse(text = c('```{r, echo=FALSE}', '2 * 3', '```'), output = 'markdown')
```
#> [1] 6
```
fuse(text = c('```{r, eval=FALSE}', 'stop("No")', '```'), output = 'markdown')
``` {.r}
stop("No")
```
fuse(text = c('```{r, results=FALSE}', '1 + 1', '```'), output = 'markdown')
``` {.r}
1 + 1
```
fuse(text = c('```{r, include=FALSE}', '1 + 1', '```'), output = 'markdown')
fuse(text = c('```{r, comment="##"}', '1:3', '```'), output = 'markdown')
``` {.r}
1:3
```
```
##[1] 1 2 3
```
fuse(text = c('```{r, comment=""}', '1:3', '```'), output = 'markdown')
``` {.r}
1:3
```
```
[1] 1 2 3
```
fuse(text = c('```{r, collapse=TRUE}', '1 + 1', '2 + 2', '```'), output = 'markdown')
``` {.r}
1 + 1
#> [1] 2
2 + 2
#> [1] 4
```
fuse(text = c('#| results="asis"', 'cat("<p>hi</p>\\n")', '#| foo', '1:2'), output = 'markdown')
``` {.r}
cat("<p>hi</p>\n")
```
<p>hi</p>
``` {.r}
1:2
```
```
#> [1] 1 2
```
fuse(text = c('```{r, error=TRUE}', 'stop("oops")', '```'), output = 'markdown')
``` {.r}
stop("oops")
```
``` {.plain .error}
#> Error: oops
```
fuse(text = c('```{r, warning=TRUE}', 'warning("careful!")', '```'), output = 'markdown')
``` {.r}
warning("careful!")
```
``` {.plain .warning}
#> careful!
```
fuse(text = c('```{r, warning=FALSE}', 'warning("shh")', '```'), output = 'markdown')
``` {.r}
warning("shh")
```
fuse(text = c('```{r, message=TRUE}', 'message("hey")', '```'), output = 'markdown')
``` {.r}
message("hey")
```
``` {.plain .message}
#> hey
```
fuse(text = c('```{r}', 'x = 42', '```', '', '```{r}', 'x', '```'), output = 'markdown')
``` {.r}
x = 42
```
``` {.r}
x
```
```
#> [1] 42
```
fuse(text = '# Title\n\nJust some text.', output = 'markdown')
# Title
Just some text.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.