I'm sharing this with r-help, as your detailed response might help
others help you.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sun, Sep 4, 2016 at
I think I have found a working solution. Rather ugly, but working and will
keep looking for better alternatives, though.
The procedure involves:
- parsing one line at a time
- if incomplete, parse as many lines as necessary to form an expression
- determine all expressions in the original input
-
On Mon, Sep 5, 2016 at 5:33 PM, Bert Gunter wrote:
>
> I'm sharing this with r-help, as your detailed response might help
> others help you.
Oh, my bad (thought I had replied to all).
I wanted to add anyways the intended result seems to be possible. If
pasting the code here...:
http://www.tutori
You might want to look at the "evaluate" package.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sun, Sep 4, 2016 at 4:47 PM, Adrian Dușa wrote:
Dear R users,
I am trying to simulate a pseudo R console, evaluating commands. This is a
simple example of a series of command lines which get evaluated:
foo <- function(x) {
print(x)
}
print)foo)
foo(2)
If I copied and pasted this example in an R console, this is the result to
replicate (a
5 matches
Mail list logo