Uses codetools::findGlobals() to enumerate all global symbol references
in fn_body, then removes:
Language primitives and operators.
NSE false-positives: data-masked column names in tidyverse verbs,
.data$pronouns,{{ }}injections, andrlang::enquo()/sym()args.
Value
A character vector of symbol names that represent real function
calls, sorted and de-duplicated. Returns character(0) on error.
Details
For pkg::fn and pkg:::fn patterns the symbol is verified to exist as a
function in the package namespace before being included.