On Mon, Feb 9, 2009 at 11:07 AM, Laurent Gautier <lgaut...@gmail.com> wrote: > Yes. I would actually put at the rinterface/__init__.py level > (still at the rinterface level, but this would cut down on C-level > development time).
Yeah, IME python wrapping is all about writing the thinnest barest-bones API possible in C, and then writing the user-friendly interface in Python. In this case it's just a question where to put that user-friendly API, I guess (rinterface/__init__.py vs. robjects and friends). If you want them in rinterface, then are you planning to assign the variables at initialization time, like def initr(): real_initr() global MISSING MISSING = getArgMissingSexp() # repeat for NA_*, etc. ? > - I wanted an easy way/elegant way to initialize parameters. > http://rpy.sourceforge.net/rpy2/doc/html/rinterface.html#initialization > With an implicit initialization, I found all solutions I have coming > up with not very elegant (and error-prone)... unless I'd go for a > separate module for custom initialization purposes (might be the turn > I take for rpy2-2.1). Makes sense. > May be this is because rpy2.robjects is currently the most visible option > (rpy_classic is an other one). rpy2.robjects and rpy2.rpy_classic are > implemented using rpy2.rinterface... but I would not pretend they are *the* > way to have an API to R (there are points where for some users they suck by > design ;-) ). Oh, I'm well aware -- but there will still be a fairly small number of such high-level interfaces, and their authors already need a bunch of esoteric R knowledge, so providing them with a slightly less pretty API is not really a barrier. -- Nathaniel ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list