Add objects to package namespace

Along the line of @Hadley’s solution, but using the environment of the namespace, how about:

environment(myfun) <- asNamespace('stats')

Leave a Comment