read_cast | R Documentation |
Import an asciicast from an asciicast JSON file
read_cast(json)
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. |
asciicast
object.
Other asciicast functions:
asciicast-package
,
asciicast_start_process()
,
record()
,
write_json()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.