Export failed checks to JSON
Arguments
- gp
gpoutput.- file
Output connection or file.
- pretty
Whether to pretty-print the JSON.
Examples
path <- system.file("bad1", package = "goodpractice")
g <- gp(path, checks = "description_url")
#> ── Preparing goodpractice for badpackage ───────────────────────────────────────
#> ℹ Preparing: description
#> ✔ Preparing: description [10ms]
#>
tmp <- tempfile(fileext = ".json")
export_json(g, tmp)
unlink(tmp)
