php-r icon indicating copy to clipboard operation
php-r copied to clipboard

Lines with white space halt R process

Open yooper opened this issue 10 years ago • 1 comments

I have noticed passing a set of commands via the run command is finicky. If there is an empty line, just a newline or a line contains just white space, the commands will not process.

After running strace it seems that the process is blocked on the read process;

write(4, "docs <- Corpus(VectorSource(unli"..., 64) = 64
read(5, "docs <- Corpus(VectorSource(unli"..., 8192) = 64
read(5, "> ", 8192)                     = 2
read(7, 0x7fcb142e56f0, 8192)           = -1 EAGAIN (Resource temporarily unavailable)
nanosleep({0, 1000}, NULL)              = 0
write(4, "toSpace <- content_transformer(f"..., 71) = 71
read(5, "toSpace <- content_transformer(f"..., 8192) = 73
read(5, 

yooper avatar Aug 13 '15 13:08 yooper

@yooper could you please have a look at #35 and check if that fixes your issue? Please send a ping if you can't do this too so that we did not wait 😉

kachkaev avatar Dec 04 '17 14:12 kachkaev