search for: r_fgetcconnection

Displaying 2 results from an estimated 2 matches for "r_fgetcconnection".

2006 Oct 09
1
Discussion starter for package level Connection API
...Rconnection con = getConnection(idx); if (!con) return -1; /* just like fprintf(3)? */ if(!con->isopen) error(_("connection is not open")); if(!con->canwrite) error(_("cannot write to this connection")); return con->vfprintf(con,format,ap); } int R_FgetcConnection(int idx){ Rconnection con = getConnection(idx); if (!con) return EOF; /* just like fgetc(3)? */ if(!con->isopen) error(_("connection is not open")); if(!con->canread) error(_("cannot read from this connection")); return con->fgetc(con); } do...
2007 May 30
5
Possible changes to connections
When I originally implemented connections in R 1.2.0, I followed the model in the 'Green Book' closely. There were a number of features that forced a particular implementation, and one was getConnection() that allows one to recreate a connection object from a number. I am wondering if anyone makes use of this, and if so for what? It would seem closer to the R philosophy to have