Converts the raw JSON written to stdout by scc --format json into a
tibble::tibble(). Handles empty or blank output by returning a zero-row
tibble with the correct column schema via empty_scc_tibble().
Arguments
- json_text
Character scalar: raw stdout captured from
scc.- by_file
Logical. When
TRUEunpacks the per-fileFilesarray inside each language block; whenFALSE(default) returns one row per language.- dryness
Logical. When
TRUEthe returned tibble includes adrynesscolumn (uloc / lines); whenFALSE(default) the column is omitted.
Value
A tibble::tibble(). Column layout matches scc() when
by_file = FALSE and scc_by_file() when by_file = TRUE.