Do you think it'd be possible to do something like:
p = r.exec("R --no-save < test.r");
//where test.r contains seq(1,10,1)
When I do this on the command line directly, it works fine. However, when I do this from within Java, it ignores (and tells me it's ignoring) everything from the "<" forward. Here's the error:
In Main after exec
ARGUMENT '<' __ignored__
ARGUMENT 'test.r' __ignored__
R version 2.5.1 (2007-06-27)
Copyright (C) 2007 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
....