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
Which part of the read-eval-print loop loop ("REPL loop") do you need?
source(file, print=TRUE) gives you the printing part, which is what I usually
want.
Opening a file connection and repeatedly calling parse(n=1) gives you the read
part,
> tf <- tempfile()
> cat(file=tf, sep="\n", "x <- 1
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.