I've implemented an R Connections API for packages writers and those embedding R into other systems. The patch is here: http://biostat.mc.vanderbilt.edu/twiki/pub/Main/RApacheProject/Conn-patch-R-devel-r39773.patch and I've started an R wiki for discussion here: http://wiki.r-project.org/rwiki/doku.php?id=developers:r_connections_api Main points: 1) C code can create new connections and pass them back to R. 2) R code can utilize them just like existing connections. 3) C code can also utilize them. 3) stdin, stdout, and stderr connections can be replaced with something else. Comments much appreciated, Jeff -- http://biostat.mc.vanderbilt.edu/JeffreyHorner