Is there a way to declare a namespace and export a function into it so that it can be accessed with :: without creating the whole package?
The following steps are for ::: but not :::
ns <- namespace::makeNamespace("my_namespace") assign("test",7, env=ns) my_namespace:::test
Is there an alternative to assign that will make the last line work? (The goal is to model the package during its development, so other files can use it as if it were a complete package, but it can be quickly reloaded using source rather than devtools::install .)
source share