Reports what percentage of commands in a .do file (or directory of files) can be automatically transpiled vs require manual review.
Value
A data.frame with columns: file, total_commands, translated, skipped, manual_review, coverage_pct
See also
Other transpiler:
parse_do_file(),
parse_stata_labels(),
transpile_stata(),
transpile_stata_module()
Examples
# \donttest{
tf <- tempfile(fileext = ".do")
writeLines(c("gen x = 1", "replace x = 2 if y == 3", "drop z"), tf)
transpile_coverage(tf)
#> file path total_commands
#> 1 file26a21a9d7cf0.do /tmp/RtmpkNIXgg/file26a21a9d7cf0.do 2
#> 2 TOTAL /tmp/RtmpkNIXgg/file26a21a9d7cf0.do 2
#> translated skipped manual_review coverage_pct
#> 1 2 0 0 100
#> 2 2 0 0 100
# }