I'm refactoring a package containing many non-exported functions and other non-exported objects. Is there a way to quickly identify all the "orphaned" objects that are defined but not exported or called anywhere else in the package, other than manually doing a full text search for the name each function in the package?
An additional complication is that some functions are called inside glue f-style strings, so there may be cases where functions are called that are not parsable as expressions (this is probably not a good design pattern).
But I would be satisfied with a method for just functions and other objects that never appear as normal expressions after being defined.