This is an example of dynamic exporting. The hms package does this, as does googledrive I think.
See below for the pillar function that gets exported
See below for how it's dynamically exported when the package is loaded. I've used this myself, pretty useful.