[Rd] Running R scripts with interactive-style evaluation

2013-02-27 Thread Marc Aurel Kiefer
doch.dun...@gmail.com] Gesendet: Dienstag, 26. Februar 2013 14:06 An: Marc Aurel Kiefer Cc: r-devel@r-project.org Betreff: Re: [Rd] Running R scripts with interactive-style evaluation On 13-02-26 5:07 AM, Marc Aurel Kiefer wrote: > Hi, > > when running a R-script like this: > > enab

Re: [Rd] Running R scripts with interactive-style evaluation

2013-02-26 Thread Jon Clayden
If you're intending to run some code that may require user input, then I share your need. I started two threads on this some time ago [1,2], but as far as I know it still isn't possible. My workaround is to use "expect", or to create a temporary .Rprofile if that is not available, from within a she

Re: [Rd] Running R scripts with interactive-style evaluation

2013-02-26 Thread William Dunlap
lf > Of Marc Aurel Kiefer > Sent: Tuesday, February 26, 2013 2:08 AM > To: r-devel@r-project.org > Subject: [Rd] Running R scripts with interactive-style evaluation > > Hi, > > when running a R-script like this: > > enable_magic() > compute_stuff() > disable_magic() &g

Re: [Rd] Running R scripts with interactive-style evaluation

2013-02-26 Thread Duncan Murdoch
On 13-02-26 5:07 AM, Marc Aurel Kiefer wrote: Hi, when running a R-script like this: enable_magic() compute_stuff() disable_magic() the whole script is parsed into a single expression and then evaluated, whereas when using the interactive shell after each line entered, a REPL loop happens.

[Rd] Running R scripts with interactive-style evaluation

2013-02-26 Thread Marc Aurel Kiefer
Hi, when running a R-script like this: enable_magic() compute_stuff() disable_magic() the whole script is parsed into a single expression and then evaluated, whereas when using the interactive shell after each line entered, a REPL loop happens. Is there a way to make a script evaluation behave