write_json | R Documentation |
The file uses the asciinema file format, version 2: https://github.com/asciinema/asciinema/blob/master/doc/asciicast-v2.md.
write_json(cast, path)
cast |
|
path |
Path to write to. |
Other asciicast functions:
asciicast-package
,
asciicast_start_process()
,
read_cast()
,
record()
script <- system.file("examples", "hello.R", package = "asciicast")
cast <- record(script)
json <- tempfile(fileext = ".json")
write_json(cast, json)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.