Hi, There are two places where the '_' <-> '.' translation can make the typing with Python (a little) more convenient.
R object names (see http://rpy.sourceforge.net/rpy2/doc-2.1/html/robjects.html#module-rpy2.robjects.packages ) and named arguments in functions (see http://rpy.sourceforge.net/rpy2/doc-2.1/html/robjects.html#functions ) In the later section, you'll find an example of how to customize parameter names translation to anything you like. Hoping this helps, L. On 2/7/10 6:03 PM, Yaroslav Halchenko wrote: > Hi, > > So, rpy2's interface/object do not support conversion of '_' into '.' > and I see the reason -- indeed underscores could be used by r code as > well... but now to overcome this issue I need a cumbersome workaround > whenever I need to call R's function with smth like 'use.blah' as > argument... e.g. for calling stars: > > rstars_segmented = robjects.r( > 'function(x,y,z) ' > 'stars(x, labels=y, key.labels=z, scale=TRUE,' > 'axes=FALSE, len=0.8, key.loc = c(7, 2.3), draw.segments = TRUE)') > and then calling rstars_segmented ... > I see few possible workarounds with a simple one: > > to make a conversion of not '_' which might be conflicting, > but something REALLY unlikely to get conflicts... smth like > > '_Rdot_' ? > > so I could use "key_Rdot_loc" as argument name? ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list