id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,work_issues,upstream,reviewer,author,merged,dependencies,stopgaps
6489,Allow Sage to call R (statistics),sjanke,mhampton,"Here we have the start of a ""bridge"" between Sage and R.

The R c language api is used to call R functions from Python.

This code mostly handles converting between Sage (Python) and R types.

The way it works is Python calls the callTypedArgs function defined in this module, passing in the name of the R function to call, a string specifying types of the parameters the function expects and what the function returns, then a list of Python Objects (such Sage integers, or vectors or matrices) for the parameters. R_bridge then creates the equivalent simple expressions in R for the passed Python objects, calls the given function in R, and then converts back from the returned R simple expression to a Python Object.

The way to expose R's functionality nicely in Sage using this is then to create a Sage file (like statistics.py) that uses R_bridge to call R functions. This file would wrap up the ugly parameter and return type specifier string.",enhancement,needs_work,minor,sage-feature,statistics,,"statistics, R,",,,N/A,,Scott Janke,,,
