play {asciicast}R 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)


[Package asciicast version 2.3.1 Index]