[Roxygen-devel] What's missing in S4?

Peter Danenberg pcd at roxygen.org
Mon Mar 7 21:28:27 CET 2011


That's a great idea, Hadley; otherwise, I take it, I'll have to effectively implement a subset of S4.

On the other hand, it probably won't be as simple as eval-ing the S4 expressions in a new environment.

On Mar 6, 2011, at 7:08, Hadley Wickham <hadley at rice.edu> wrote:

> My big question would be if you're going to switch from parsing the
> source code, to executing it and then evaluating the stored S4
> metadata?  It seems like that would be more work, but also more
> robust.
> 
> Hadley
> 
> On Sun, Mar 6, 2011 at 4:05 AM, Peter Danenberg <pcd at roxygen.org> wrote:
>> We're trying to shore up S4 support, and I was wondering whether
>> anyone noticed any discrepancies; as I mentioned in an email to Brian
>> Peterson, Peter Haverty noticed at least one bug:
>> 
>>  Also, @exportMethod doesn't know how to do usage statement for S4
>>  replacement functions.
>> 
>>  It wants to do
>> 
>>    \S4method{"foo<-"}{bar,character,ANY}(x, i, value)
>> 
>>  when it should do
>> 
>>    \S4method{"foo"}{bar,character,ANY}(x, i) <- value
>> 
>>  (At least that's how a post by one of those famous R guys said the
>>  usage should look).  R CMD check barfs on the way Roxygen does it.
>> 
>> Is there anything on your TODO list, Manuel, besides general
>> architectural things (e.g. better integration)?
>> _______________________________________________
>> Roxygen-devel mailing list
>> Roxygen-devel at lists.r-forge.r-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel
>> 
> 
> 
> 
> -- 
> Assistant Professor / Dobelman Family Junior Chair
> Department of Statistics / Rice University
> http://had.co.nz/
> 


More information about the Roxygen-devel mailing list