Runs scc a second time in tabular mode and extracts the COCOMO cost /
effort block, which scc only emits for its tabular formatter (not for
--format json). The three default-format lines are parsed into a
tibble::tibble() with columns metric, project_type, value.
Usage
scc_cocomo(
scc_bin,
path,
avg_wage = NULL,
cocomo_project_type = NULL,
eaf = NULL,
overhead = NULL,
currency_symbol = NULL,
sloccount_format = FALSE,
auto_print = TRUE
)Arguments
- scc_bin
Path to the
sccexecutable.- path
Character vector of paths passed to
scc.- avg_wage, cocomo_project_type, eaf, overhead, currency_symbol, sloccount_format
COCOMO-related arguments; see
scc()for descriptions.- auto_print
Logical. When
sloccount_format = TRUEthe upstream block has a different shape than the default 3-line summary; ifauto_printisTRUEit is printed verbatim and the function returnsNULL(since it cannot be coerced to the standard tibble).
Value
A 3-row tibble::tibble() with columns metric, project_type,
value, or NULL for the sloccount-format / unparseable cases.
Details
Called by scc() and scc_by_file() only when cocomo = TRUE.