Is there a good way to do namespaces inside #rstats packages? I guess putting things in lists or envs, but I'd like to easily and temporarily use a namespace at the front of the symbol resolution search path and don't know how to manage that
1
2
No 馃檪. I鈥檝e got a package with what are basically a bunch of modules that I want to keep logically separate but bundled for distribution and loading. S4 objects or attach()鈥檌ng and detatch()鈥檌ng envs are probably what I want. I don鈥檛 really understand S4 though
1
Got it. I don't really understand S4 either. @eddelbuettel might know (or would know who knows).
1
1
Hm, two different topics. Namespaces in R are mostly similar to use elsewhere and let you hide/expose as needed. S4 is a different topic but can be used with them. And yes S4 can be challenging. But it grew on me during the work on two recent packages.
Apr 26, 2021 路 11:58 PM UTC
1
2


