
Find the one installed package (if any) that unambiguously exports a name
Source:R/reproducibility_check.R
dot-repro_find_export_pkg.RdUsed by the module's corrective re-run for a could not find function "X"
error that no file in the paper's own code defines (the sibling case to
repro_defined_vars()'s repo-file lookup, for when the missing symbol is a
PACKAGE export the author simply forgot to library(), not a local
variable/function). Deliberately scoped, not a blind search of every
installed or CRAN package: only candidates (the paper's own declared
dependencies plus .repro_common_pkgs()'s small curated safe-list) are
checked, so an ambiguous common name (%>%, select, ...) across the
package universe at large is never even considered — see this function's
caller for why a blind scan is unsafe (a real corpus check found %>%
alone exported by 69 installed packages).