Learn R Programming

asciicast (version 1.0.0)

play: Play asciinema cast as an SVG image in the default browser

Description

Uses write_svg() to create an SVG image for a cast, in a temporary file, and then previews a minimal HTML file with the SVG image, in the default browser.

Usage

play(cast, ...)

Arguments

cast

asciicast object

...

Additional arguments are passed to write_svg().

Value

The path of the temporary SVG file, invisibly.

See Also

Other SVG functions: default_theme(), write_svg()

Examples

Run this code
# NOT RUN {
cast <- read_cast(system.file("examples", "hello.cast", package = "asciicast"))
play(cast)
# }

Run the code above in your browser using DataLab