Re: [R] Start R from bash/bat file and end in interactive mode

2013-04-07 Thread Duncan Murdoch
On 12-11-01 4:14 AM, Jan van der Laan wrote: I have a r-script (rook.R) that starts a Rook server. To present users from having to start R and type in source("rook.R"), I want to create a bash script and bat file that starts R and sources the script. However, to keep the Rook server running R sh

Re: [R] Start R from bash/bat file and end in interactive mode

2013-04-07 Thread Frank Schwidom
another working Example: { echo "print( 1)"; cat;} | R --interactive but do not end with -D, it overrides the "save workspace" question; use q() instead there is an additional echo where i don't know how to avoid them On Thu, Nov 01, 2012 at 09:14:09AM +0100, Jan van der Laan wrote: > > I ha

Re: [R] Start R from bash/bat file and end in interactive mode

2013-04-07 Thread Frank Schwidom
one way could be: $ cat rook.R | R --interactive but with a little different console behaviour the problem in your other examples is, that R uses only the first appearing switch of: --interactive, --f, -e, --vanilla, --no-save, ... the switches cannot be combined On Thu, Nov 01, 2012 at 09:14

[R] Start R from bash/bat file and end in interactive mode

2012-11-01 Thread Jan van der Laan
I have a r-script (rook.R) that starts a Rook server. To present users from having to start R and type in source("rook.R"), I want to create a bash script and bat file that starts R and sources the script. However, to keep the Rook server running R should not close after running the scrip