[Rd] Rgeneric.py assists in rearranging generic function definitions

From: Ross Boylan <ross_at_biostat.ucsf.edu>
Date: Thu, 21 Jan 2010 11:38:41 -0800

I've attached a script I wrote that pulls all the setGeneric definitions out of a set of R files and puts them in a separate file, default allGenerics.R. I thought it might help others who find themselves in a similar situation.

The "situation" was that I had to change the order in which files in my package were parsed; the scheme in which the generic definition is in the "first" file that has the corresponding setMethod breaks under re-ordering. So I pulled out all the definitions and put them first.

In retrospect, it is clearly preferable to create allGenerics.py from the start. If you didn't, and discover you should have, the script automates the conversion.

Thanks to everyone who helped me with my packaging problems. The package finally made it to CRAN as
http://cran.r-project.org/web/packages/mspath/index.html. I'll send a public notice of that to the general R list.

Ross Boylan

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 21 Jan 2010 - 19:41:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Jan 2010 - 02:00:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive