From: Andreas Kiermeier <andreas.kiermeier@gmail.com>
To: Charles Berry <ccberry@ucsd.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: R code block produces only partial output
Date: Wed, 6 Aug 2014 10:41:34 +0930 [thread overview]
Message-ID: <CAN7vk5S_MdyEnbJKhA0vzsqmhkVPUU38VYs6YBRyFm_Xpjte6A@mail.gmail.com> (raw)
In-Reply-To: <loom.20140805T193613-649@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1658 bytes --]
On 6 August 2014 03:35, Charles Berry <ccberry@ucsd.edu> wrote:
[snip]
> 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 "\\." ?
>
Thanks Charles for finding this.
I do use R quite a bit, and I can only think of ">
" (at beginning of the line) as the command prompt, along with "+
" (at beginning of the line) as a continuation prompt for multi-line
commands. I don't know what
"\" or
"." provide
(I don't think this has changed over the various R versions)
.
A
complication might be that the user can change the command prompt (and
continuation prompt) to something else they like (
see here:
http://cran.r-project.org/doc/manuals/r-release/R-intro.html#Customizing-the-environment
).
For the time being I've taken the "\\." out of my local version of ob-R.el
(then byte compiled and loaded) and it seems to work fine.
Maybe this is a question for the ESS developers who use R extensively and
probably might be able to provide some more definitive guidance on this
than I can?
Thanks,
Andreas
[-- Attachment #2: Type: text/html, Size: 4375 bytes --]
next prev parent reply other threads:[~2014-08-06 1:12 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 11:18 R code block produces only partial output Andreas Kiermeier
2014-08-04 11:53 ` Eric Schulte
2014-08-04 12:23 ` Andreas Kiermeier
2014-08-04 13:10 ` Eric Schulte
2014-08-05 0:46 ` Andreas Kiermeier
2014-08-05 4:00 ` John Hendy
2014-08-05 4:31 ` Andreas Kiermeier
2014-08-05 18:05 ` Charles Berry
2014-08-05 19:02 ` Eric Schulte
2014-08-05 19:11 ` John Hendy
2014-08-05 19:57 ` Nick Dokos
2014-08-05 20:10 ` Nick Dokos
2014-08-05 22:21 ` Charles C. Berry
2014-08-06 3:32 ` Aaron Ecay
2014-08-06 11:30 ` Eric Schulte
2014-08-07 6:00 ` Aaron Ecay
2014-08-07 17:42 ` Charles C. Berry
2014-08-07 18:06 ` Aaron Ecay
2014-08-07 18:42 ` Charles C. Berry
2014-08-07 19:06 ` Thomas S. Dye
2014-08-09 8:54 ` Rainer M Krug
2014-08-16 5:05 ` Aaron Ecay
2014-08-16 18:50 ` Charles C. Berry
2014-08-16 20:58 ` Aaron Ecay
2014-08-17 6:03 ` Achim Gratz
2014-08-19 0:13 ` Aaron Ecay
2014-08-19 5:36 ` Achim Gratz
2014-08-23 8:32 ` Aaron Ecay
2014-08-23 9:24 ` Andreas Kiermeier
2014-08-23 17:10 ` Aaron Ecay
2014-08-23 18:35 ` Thomas S. Dye
2014-08-23 19:37 ` Ista Zahn
2014-08-24 0:10 ` Charles C. Berry
2014-08-28 5:24 ` Aaron Ecay
2014-09-01 5:00 ` Aaron Ecay
2014-09-01 16:08 ` Charles C. Berry
2014-08-09 8:48 ` Rainer M Krug
2014-08-06 1:11 ` Andreas Kiermeier [this message]
2014-08-06 2:21 ` Charles C. Berry
2014-08-06 3:24 ` Aaron Ecay
2014-08-06 15:59 ` Charles C. Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN7vk5S_MdyEnbJKhA0vzsqmhkVPUU38VYs6YBRyFm_Xpjte6A@mail.gmail.com \
--to=andreas.kiermeier@gmail.com \
--cc=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.