But I looked at the R-Bundle and I wrote a command (in bash) which executes R directly in script mode à la
R --no-save --silent <<< "$TASK" 2>/dev/null [...]
Here is an improved version.
Changes: - do not insert a NEWLINE after the selection - if the result is complex meaning two or more lines the output is the same like in R; now you can insert e.g. this 'matrix(c(1:20),nrow=4)' correctly or if you want '?print'
-Hans
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.