[Rd] Expose clearPushBack for connections

From: Jeffrey Horner <jeff.horner_at_vanderbilt.edu>
Date: Thu, 09 Oct 2008 09:20:10 -0500

Hi all,

rapache relies on embedding R and assigning it's own function to ptr_R_ReadConsole so that users can read HTTP POST data from a request with readLines() with the stdin() connection. However, since stdin() is a non-blocking text connection, incomplete lines are silently pushed back onto the connection. I don't see any other way to clear the pushed back data other than to call .Internal(clearPushBack(stdin()) which works well but may be deprecated in the future.

Are there other solutions to clear the stdin() push back stack for apps that embed R and use their own reading routines?




R-devel_at_r-project.org mailing list
Received on Thu 09 Oct 2008 - 14:25:40 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 Fri 10 Oct 2008 - 06:30:18 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