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?

Thanks,

Jeff
--
http://biostat.mc.vanderbilt.edu/JeffreyHorner

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to