read_cast: Import an asciicast from an asciicast JSON file

View source: R/read.R

read_castR Documentation

Import an asciicast from an asciicast JSON file

Description

Import an asciicast from an asciicast JSON file

Usage

read_cast(json)

Arguments

json

Path to JSON asciicast file, version 2: https://github.com/asciinema/asciinema/blob/master/doc/asciicast-v2.md. If a numeric id, then it is taken as a public https://asciinema.org recording id, that is downloaded. It can also be a URL of private https://asciinema.org link.

Value

asciicast object.

See Also

Other asciicast functions: asciicast-package, asciicast_start_process(), record(), write_json()

Examples


c1 <- read_cast("https://asciinema.org/a/uHQwIVpiZvu0Ioio8KYx6Uwlj.cast?dl=1")
play(c1)

c2 <- read_cast(258660)
play(c2)


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


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