write_json: Write an ascii cast to file

Description Usage Arguments See Also Examples

View source: R/asciicast.R

Description

The file uses the asciinema file format, version 2: https://github.com/asciinema/asciinema/blob/master/doc/asciicast-v2.md.

Usage

1
write_json(cast, path)

Arguments

cast

asciicast object.

path

Path to write to.

See Also

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

Examples

1
2
3
4
script <- system.file("examples", "hello.R", package = "asciicast")
cast <- record(script)
json <- tempfile(fileext = ".json")
write_json(cast, json)

asciicast documentation built on Dec. 16, 2019, 1:37 a.m.