Estimates the size of the source package that would be shipped to CRAN
(files matched by .Rbuildignore, plus standard scratch directories like
.git, .Rproj.user, are excluded). Warns at the 5 MB threshold.
Value
checktor_check_result() with passed, issues, message,
and size_mb.
Examples
pkg_path <- example_diagnose_scenario("code_examples/tf_usage_bad.R",
show_content = FALSE)
diagnose_package_size(pkg_path, verbose = FALSE)$size_mb
#> [1] 0.001089096