Add objects to package namespace
You can access internal objects of a package using the triple colon operator :::
. Take a look at, for example, as.roman
and utils:::.roman2numeric
. (Compare this to utils::.roman2numeric
.) This could help you avoid having to put your function inside the namespace.
You might also want to look at dont.lockBindings
in the mvbutils
package, which stops namespaces being locked.