Is there an easy way to list everything in a package from within R?
For example, if I type foreach::: and hit tab twice, I can see everything that’s there.
How else can I get those names of objects?
Note, ls("package:foreach", all.names=TRUE) does not show things like .foreachGlobals
ls("package:foreach", all.names=TRUE)only shows what’s attached to the search path, which only includes the objects exported from the namespace. Uselson the results ofgetNamespaceinstead: