Displaying 2 results from an estimated 2 matches for "fantasmoswankyblastik".
2020 Feb 21
2
R --interactive -e 'browser()'
I would like to have a mode where I can run some R code in an executable script, like with Rscript, but interactively, so that e.g. 'browser()' works.
From the manual page it looks like this should work:
R --interactive -e 'source("script.R")'
or we could shorten it to:
R --interactive -e 'browser()'
However, it seems that --interactive causes -e
2020 Feb 22
0
R --interactive -e 'browser()'
...tive mode, input is taken from a text file (or equivalent).
What you're trying to do is run R in *non*-interactive mode, and call
the browser function.
This requires input to come from the user (i.e. command line) and from
a text file (or equivalent), at essentially the same time.
While doing fantasmoswankyblastik things with I/O is a lot of fun.
I don't think it's R's job to do that.
On Fri, Feb 21, 2020 at 6:25 PM <frederik at ofb.net> wrote:
>
> I would like to have a mode where I can run some R code in an executable script, like with Rscript, but interactively, so that e.g. '...