search for: 40salilab

Displaying 1 result from an estimated 1 matches for "40salilab".

2009 Nov 19
3
Issue when calling deparse(substitute(x)) from C with "anonymous" R vectors ?
...t seems to be happening is that the deparse(substitute(x)) call gives a character vector of length > 1 as soon as x is "not so small". To demonstrate this, I am using rpy2 (as the problem was found when using it http://sourceforge.net/mailarchive/forum.php?thread_name=4B043CA1.9050500%40salilab.org&forum_name=rpy-list ), but it will likely be present in other bridges to R as well. #using R-2.10 and rpy2-2.1.dev >>> import rpy2.robjects as robjects >>> f = robjects.r('''function(x) return(deparse(substitute(x)))''') >>> tuple(f(...