CRAN policy: package code that downloads files or hits the network
at install / runtime must degrade gracefully when the network is
unavailable (offline build farms, sandboxed CI, locked-down user
environment). Common rejection causes: downloads from inside
.onLoad(), .onAttach(), vignettes or examples that have no
tryCatch() / skip_if_offline() / \dontrun{} guard.
audit_downloads(pkg = ".")A tibble with columns file, line, function and
suggestion. Empty when no download call is found, or when the
package has none of the watched directories.
audit_downloads() walks R/, tests/, vignettes/ and inst/
and surfaces every call to a known download or HTTP function so
the dev can review each one. Detection is purely static: each file
is parsed and the AST is walked; nothing is sourced.
if (FALSE) { # \dontrun{
audit_downloads(".")
} # }