Barry Rowlingson
2018-Jul-26 11:25 UTC
[Rd] Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:> I am trying to control a background R session, connected via a fifo / > named pipe.Is the fifo significant here? If I read the same R code from a file via `<` I get the input echoed (R 3.4.4, Ubuntu). Barry
Gábor Csárdi
2018-Jul-26 11:54 UTC
[Rd] Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson <b.rowlingson at lancaster.ac.uk> wrote:> > On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: > > I am trying to control a background R session, connected via a fifo / > > named pipe. > > Is the fifo significant here? If I read the same R code from a file > via `<` I get the input echoed (R 3.4.4, Ubuntu).Yeah, for a file I get echo on both macOS and Linux, but not on Windows. I think the most useful behavior for --slave is no echo at all, maybe? But I might be missing the motivation behind --slave. Another thing is that windows does not have --interactive. Is there a way to run R 1) without echoing stdin, and 2) without quitting on the first error, on all platforms? Gabor> Barry
luke-tier@ey m@ili@g off uiow@@edu
2018-Jul-26 12:43 UTC
[Rd] Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, 26 Jul 2018, G?bor Cs?rdi wrote:> On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson > <b.rowlingson at lancaster.ac.uk> wrote: >> >> On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: >>> I am trying to control a background R session, connected via a fifo / >>> named pipe. >> >> Is the fifo significant here? If I read the same R code from a file >> via `<` I get the input echoed (R 3.4.4, Ubuntu). > > Yeah, for a file I get echo on both macOS and Linux, but not on Windows. > > I think the most useful behavior for --slave is no echo at all, maybe? > But I might be missing the motivation behind --slave. > > Another thing is that windows does not have --interactive. Is there a > way to run R > 1) without echoing stdin, andI'm not seeing an echo for your example on Ubuntu or Fedora.> 2) without quitting on the first error, > on all platforms?One option is to use options(error = function() invokeRestart("abort")) There may be better ways. Best, luke> > Gabor > >> Barry > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics and Fax: 319-335-3017 Actuarial Science 241 Schaeffer Hall email: luke-tierney at uiowa.edu Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
Maybe Matching Threads
- Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
- Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
- Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
- diag(-1) produces weird result
- re-throwing an interrupt condition