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

View source: R/svg.R

playR Documentation

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


cast <- read_cast(system.file("examples", "hello.cast", package = "asciicast"))
play(cast)


asciicast documentation built on May 29, 2024, 6:24 a.m.