Hi, Mike Hansen and I have put some work into making it possible to very easily use R from Sage, and are even maybe considering including R in Sage. This is very likely definitely not ready yet, but we have an experimental package that might work. It would be very useful if some people could test building it and report back whether or not it works, and how long it takes to build.
All you have to do is: (1) install R: $ time ./sage -f -m r-2.6.1rc.p1 NOTE: If the package name changes, type $ ./sage -experimental |grep r- to see what the new name is. Note that we put "-f -m" above so that the R build directory gets left laying around in spkg/build/. This is because there are still some issues with "make install" and R. Also, R hardcodes install paths in the R command, which is something we'll have to deal with before releasing R as an official optional package. (2) Then to test it out see if this works: sage: import rpy sage: rpy.r.t_test(range(100)) {'alternative': 'two.sided', 'conf.int': [43.743490583064158, 55.256509416935835], 'data.name': '0:99', 'estimate': {'mean of x': 49.5}, 'method': 'One Sample t-test', 'null.value': {'mean': 0.0}, 'p.value': 3.0537578007169442e-31, 'parameter': {'df': 99.0}, 'statistic': {'t': 17.062204191756354}} sage: time rpy.r.t_test(range(1000000)) CPU times: user 1.97 s, sys: 0.12 s, total: 2.08 s Wall time: 2.09 {'alternative': 'two.sided', 'conf.int': [499433.7061652476, 500565.2938347524], 'data.name': '0:999999', 'estimate': {'mean of x': 499999.5}, 'method': 'One Sample t-test', 'null.value': {'mean': 0.0}, 'p.value': 0.0, 'parameter': {'df': 999999.0}, 'statistic': {'t': 1732.0482094941815}} -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---