Displaying 3 results from an estimated 3 matches for "setreader".
2004 Jun 04
1
running R command in the background
Is there a way to call an R function to work in the background within the same R session? What I have in mind is the equivalent of adding '&' at the end of a UNIX command, so that R can process an intensive command while I execute other R commands. I want to do this in the same R session, rather than with multiple calls to R, so that all my modified objects will stay in the same
2001 Nov 26
2
Named pipe connections and stdout
All,
I am trying to use a named pipe to steer R from an external application.
Following the examples in RNEWS 1:1, I have created a simple listener:
zz <- fifo("TESTFIFO", "r")
repeat
{
a <- readLines(zz)
if(length(a) != 0)
{
e <- try(eval(parse(text = a)))
if (inherits(e,
2003 Mar 24
9
Scripting with an external editor
I've had time to return to the "external editor" project. The following
function does almost what I want, which is to allow an external editor to
feed command lines to R.
ext.editor<-function(editor) {
ext.input<-pipe(editor,"r")
eval(parse(ext.input))
close(ext.input)
}
While the description of parse() indicates that it should parse input line by
line, the