From t@r@@@z@kh@rko @end|ng |rom uzh@ch  Thu Jul  1 09:27:13 2021
From: t@r@@@z@kh@rko @end|ng |rom uzh@ch (Taras Zakharko)
Date: Thu, 1 Jul 2021 09:27:13 +0200
Subject: [Rd] S3 dispatch does not work for generics defined inside an
 environment
In-Reply-To: <3777905.1625111732@apollo2.minshall.org>
References: <3777905.1625111732@apollo2.minshall.org>
Message-ID: <5E29C4DA-197A-4C17-9E5D-9CD7E1EA8D48@uzh.ch>

Hi Greg, 

That was my original plan as well, but managing and deploying dozens of little packages that are all under active development is a nightmare even with devtools. Just too much overhead, not to mention that coming up with names that would not have namespace conflicts was getting silly. 

In the end, I wrote a package that implements lightweight python-like modules for R and that has really improved my workflow. I hope to publish this package later this year after I have cleaned it up a bit. 

Thanks, 

Taras

> On 1 Jul 2021, at 05:55, Greg Minshall <minshall at umich.edu> wrote:
> 
> Taras,
> 
>> P.S. If you are wondering what I am trying to achieve here ? we have a
>> very large codebase and I am trying to use environments as a type of
>> ?poor man?s namespaces? to organize code in a modular fashion. But of
>> course it?s all pointless if I can?t get the generics to work
>> reliably.
> 
> i'm not knowledgeable about S3.  but, a different way to try to
> modularize large code bases is to split them into separate packages.
> just in case you hadn't already thought about, and rejected, that idea.
> 
> cheers, Greg



[Rd] S3 dispatch does not work for generics defined inside an environment
Taras Zakharko