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

Thanks Johannes, 

I was aware of the modules package (it was not suitable for my needs unfortunately), but I did not know about box? somehow I managed to completely miss it in my search (embarrassing, really).  

My own package offers similar functionality to box, but is designed to closely follow the behavior of regular R packages and heavily relies on Roxygen2 to manage imports and exports. The idea is that you can convert a module to an R package (or via versa) with no additional effort.  Basically, where box offers an opinionated implementation of modules, my design aims to be as ?boring? as possible. You just write the code as you usually would do for a package and then you use a single new function to load it in a modular fashion. 

At any rate, I am exited that there is work in this area and I am looking forward to further exploring the design space. Maybe one day these efforts will culminate in an official R module system.  

Thanks, 

Taras

> On 1 Jul 2021, at 11:42, Johannes Ranke <johannes.ranke at jrwb.de> wrote:
> 
>> 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.
> 
> Hi, are you aware of the previous work in this direction
> 
> https://github.com/klmr/box
> 
> and
> 
> https://github.com/wahani/modules 
> 
> Johannes
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



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