knitr::opts_chunk$set(
  cache = FALSE
)
asciicast::init_knitr_engine(
  options = list(
    asciicast_end_wait = 3,
    asciicast_theme = list()
  )
)

Simple SVG image at end

```{asciicast 1-letters} letters

`eval = FALSE` works. Need to `echo = TRUE` explicitly, the default is no
echo.

```{asciicast 2-no-eval, eval = FALSE, echo = TRUE}
stop("do not run me")

Config in header is OK.

```{asciicast 3-header}

' cols: 40

1:100

`eval = TRUE` + `echo = TRUE`

```{asciicast 3-echo, echo = TRUE}
1:10

include = FALSE

```{asciicast 4-no-include, include = FALSE} "Now you don't see me"

`fig.process` option.

```{asciicast 5-process, fig.process = function(x) { file.create(paste0(x, "-processed")); x }}
cli::cli_text("processed!")


Try the asciicast package in your browser

Any scripts or data that you put into this service are public.

asciicast documentation built on Aug. 8, 2022, 1:06 a.m.