[Rd] read, write generics?

From: Matt Shotwell <shotwelm_at_musc.edu>
Date: Wed, 07 Jul 2010 11:39:37 -0400


R-devel list,

I'm working on a wrapper for R to the POSIX terminal interface. I'd like to make this code available as a package (as well as a connection patch).

The 'seek', 'truncate', 'flush', 'open', and 'close' generic functions are a great help for the packaged interface. The only two missing are 'read' and 'write' generics, but I realize write is currently a wrapper to 'cat'.

What are your thoughts on adding 'read', and converting 'write' to generics in a manner similar to 'seek' and friends?

Also, I'd like to use R's 'iconv' function to re-encode text from tty data, but this is apparently restricted to character encodings that do not permit embedded NUL characters. I wrote to R-devel about this earlier [1], with potential solution. Any thoughts on this?

-Matt

[1] http://tolstoy.newcastle.edu.au/R/e10/devel/10/06/0648.html

-- 
Matthew S. Shotwell
Graduate Student
Division of Biostatistics and Epidemiology
Medical University of South Carolina

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 07 Jul 2010 - 15:43:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 07 Jul 2010 - 16:00:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive