Re: [Rd] readLines function with R >= 3.5.0

2018-06-19 Thread Michael Lawrence
Hi Jen, Please provide a reproducible example, since the original stack overflow example works in both trunk and patched. Thanks, Michael On Tue, Jun 19, 2018 at 3:45 PM, Jennifer Lyon wrote: > Hi Michael: > > I can confirm Martin's comment. I tested my software with r-devel (r74914) > and it w

Re: [Rd] readLines function with R >= 3.5.0

2018-06-19 Thread Jennifer Lyon
Hi Michael: I can confirm Martin's comment. I tested my software with r-devel (r74914) and it works, while with r-patched (r74914) it does not work (it hangs, as it did in R 3.5.0). I apologize for it taking so long for me to test this, but is there any chance this fix could make into R 3.5.1? Th

Re: [Rd] readLines function with R >= 3.5.0

2018-06-13 Thread Michael Lawrence
Are you sure it's not available in patched? It's definitely in the source since 6/1. Michael On Wed, Jun 13, 2018 at 2:19 AM, Martin Maechler wrote: >> Michael Lawrence >> on Tue, 12 Jun 2018 19:27:49 -0700 writes: > > > Hi Jen, This was already resolved for R 3.5.1 by just >

Re: [Rd] readLines function with R >= 3.5.0

2018-06-13 Thread Martin Maechler
> Michael Lawrence > on Tue, 12 Jun 2018 19:27:49 -0700 writes: > Hi Jen, This was already resolved for R 3.5.1 by just > disabling buffering on terminal file connections like stdin. and before R 3.5.1 exists, *and* as the change is also not yet available in R patched (!) thi

Re: [Rd] readLines function with R >= 3.5.0

2018-06-12 Thread Michael Lawrence
Hi Jen, This was already resolved for R 3.5.1 by just disabling buffering on terminal file connections like stdin. Sounds like you might want to be running a web service or something instead though. Michael On Tue, Jun 12, 2018 at 4:46 PM, Jennifer Lyon wrote: > Hi: > > I have also just stumbl

Re: [Rd] readLines function with R >= 3.5.0

2018-06-12 Thread Jennifer Lyon
Hi: I have also just stumbled into this bug. Unfortunately, I can not change the data my program receives from stdin. My code runs in a larger system and stdin is sent to a Docker container running my R code. The protocol is I read a line, readLines("stdin", n=1), do some actions, send output on s

Re: [Rd] readLines function with R >= 3.5.0

2018-05-29 Thread Simon Urbanek
The MySQL DB on the server died - not sure why. Restarted and it should be ok. > On May 29, 2018, at 9:17 AM, Martin Maechler > wrote: > >> Ralf Stubner >>on Tue, 29 May 2018 11:21:28 +0200 writes: > >> On 28.05.2018 16:38, Martin Maechler wrote: >>> Then, I now do think this nee

Re: [Rd] readLines function with R >= 3.5.0

2018-05-29 Thread Martin Maechler
> Ralf Stubner > on Tue, 29 May 2018 11:21:28 +0200 writes: > On 28.05.2018 16:38, Martin Maechler wrote: >> Then, I now do think this needs to be dealt with as a bug >> (but I'm not delving into fixing it!) > Ok. Can somebody with write privileges in bugzilla add the

Re: [Rd] readLines function with R >= 3.5.0

2018-05-29 Thread Ralf Stubner
On 28.05.2018 16:38, Martin Maechler wrote: > Then, I now do think this needs to be dealt with as a bug > (but I'm not delving into fixing it!) Ok. Can somebody with write privileges in bugzilla add the bug report? I can also do this myself, if somebody with the required privileges can create a us

Re: [Rd] readLines function with R >= 3.5.0

2018-05-28 Thread Martin Maechler
> Ralf Stubner > on Mon, 28 May 2018 12:13:57 +0200 writes: > On 28.05.2018 11:07, Gábor Csárdi wrote: >> stdin() is not the same as file("stdin"), see the note in ?stdin. Of course it is not the same, otherwise using one for the other had no effect, but you are right: it is

Re: [Rd] readLines function with R >= 3.5.0

2018-05-28 Thread Ralf Stubner
On 28.05.2018 11:07, Gábor Csárdi wrote: > stdin() is not the same as file("stdin"), see the note in ?stdin. In particular stdin() works in an interactive session but not when R -f / Rscript is used, since it does not wait for the user to input anything: $ R -f readLines.R R version 3.5.0 (2018-

Re: [Rd] readLines function with R >= 3.5.0

2018-05-28 Thread Gábor Csárdi
stdin() is not the same as file("stdin"), see the note in ?stdin. Gabor On Mon, 28 May 2018, 10:41 Martin Maechler, wrote: > > Martin Maechler > > on Mon, 28 May 2018 10:28:01 +0200 writes: > > > Ralf Stubner > > on Fri, 25 May 2018 19:18:58 +0200 writes: > > >> Dear

Re: [Rd] readLines function with R >= 3.5.0

2018-05-28 Thread Martin Maechler
> Martin Maechler > on Mon, 28 May 2018 10:28:01 +0200 writes: > Ralf Stubner > on Fri, 25 May 2018 19:18:58 +0200 writes: >> Dear all, I would like to draw you attention to this >> question on SO: >> https://stackoverflow.com/questions/50372043/readlines-fu

Re: [Rd] readLines function with R >= 3.5.0

2018-05-28 Thread Martin Maechler
> Ralf Stubner > on Fri, 25 May 2018 19:18:58 +0200 writes: > Dear all, I would like to draw you attention to this > question on SO: > https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r > Based on the OP's code I used the script

[Rd] readLines function with R >= 3.5.0

2018-05-25 Thread Ralf Stubner
Dear all, I would like to draw you attention to this question on SO: https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r Based on the OP's code I used the script ### create_matrix <- function() { cat("Write the numbers of ve