On Tue, Aug 5, 2014 at 2:02 PM, Eric Schulte <address@hidden> wrote:
Charles Berry <address@hidden> writes:
Eric Schulte <schulte.eric <at> gmail.com> writes:
[snip]
Eric,
As noted by Andreas and John this is a problem for session output.
org-babel-R-evaluate-session uses
(string-match "^\\([ ]*[>+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\)" line)
to find the start of R output in the session.
This does not match the ` 0', but matches the ` .6'
in the output you show above, so if that had been in a session, all the
output up to and including the '.' before the '6' would be clipped
by the following
(substring line (match-end 1))
as Andreas output showed.
Deleting the "\\." fixes Andreas case, but what are the circumstances
requiring the "\\." ?
I don't know.
I'm not sure either, but was curious if someone could translate the
regex into "plain language." Maybe I could observe some typical
outputs and chime in since I use R regularly? From noob-level regex
stuff, it's looking for a new line followed by some number of spaces,
a ">" and at least one period and numbers?