marcel Austenfeld
2015-Jan-14 11:39 UTC
[R] Avoid R shell process echoes of piped inputs from a different programming language on Linux
Dear R developers, ? i have rather a developer question. ?>From an external application (different programming language)? i contact R through pipes (process pipes -> exec....).? On Linux i use the R (bash) script to start the R process which will be available in a custom shell. ? If i pipe a command to R i have the problem that the command is echoed in my shell connection which i would like to avoid. ? A R command is written in the output stream and the problem is that it is rewritten again in the input stream (which is output of the shell). ? If i start the bash shell independant from the R process i got the same results if i pipe commands to the output. ? If i start a Bourne-Shell independant from the R process the command is not echoed in the input stream. ? So maybe it is possible that R can be started without echoing the commands of the output stream of the process under the Linux envrironment? ? On Windows for example echoing (with Rterm) is not a problem. ? Thanks in advance for any suggestion or help.
Duncan Murdoch
2015-Jan-14 13:47 UTC
[R] Avoid R shell process echoes of piped inputs from a different programming language on Linux
I don't know the answer to your question. If nobody else answers it, I'd suggest asking in R-devel instead, and include some simple code that illustrates the problem, e.g. using "echo" to pipe something into an R process and explaining what part of the output you want to suppress. Duncan Murdoch On 14/01/2015 3:39 AM, marcel Austenfeld wrote:> > Dear R developers, > > i have rather a developer question. > >>From an external application (different programming language) i contact R through pipes (process pipes -> exec....). > > On Linux i use the R (bash) script to start the R process which will be available in a custom shell. > > If i pipe a command to R i have the problem that the command is echoed in my shell connection which i would like to avoid. > > A R command is written in the output stream and the problem is that it is rewritten again in the input stream (which is output of the shell). > > If i start the bash shell independant from the R process i got the same results if i pipe commands to the output. > > If i start a Bourne-Shell independant from the R process the command is not echoed in the input stream. > > So maybe it is possible that R can be started without echoing the commands of the output stream of the process under the Linux envrironment? > > On Windows for example echoing (with Rterm) is not a problem. > > Thanks in advance for any suggestion or help. > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >