Learn R Programming

goodpractice (version 1.2.0)

export_json: Export failed checks to JSON

Description

Export failed checks to JSON

Usage

export_json(gp, file, pretty = FALSE)

Value

Invisibly returns the path to the output file.

Arguments

gp

gp output.

file

Output connection or file.

pretty

Whether to pretty-print the JSON.

See Also

Other output: print.goodPractice(), results()

Examples

Run this code
path <- system.file("bad1", package = "goodpractice")
g <- gp(path, checks = "description_url")
tmp <- tempfile(fileext = ".json")
export_json(g, tmp)
unlink(tmp)

Run the code above in your browser using DataLab