Typically "helper" functions (defined as: functions used by main functions and typically not used by end users directly) are not exported and are not visible unless you use the package_name:::helper_function_name
syntax. If a function is visible and documented it typically is a main function. So, if you want to see main functions, just use ls
:
ls("package:sets")
If you want all functions (main + helper):
ls(getNamespace("sets"))
And finally, to get just helper functions, use setdiff
:
setdiff(ls(getNamespace("sets")), ls("package:sets"))
See this SO Q/A for some discussion.
One potential ambiguity is that sometimes S3
methods are not explicitly exported, even if they are intended to be used as "main" functions.