From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: R code block produces only partial output Date: Tue, 05 Aug 2014 15:02:22 -0400 Message-ID: <87lhr27oap.fsf@gmail.com> References: <87iom8zd24.fsf@gmail.com> <877g2oz9gv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEk0Q-0005Zt-T3 for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 15:02:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEk0M-0007ET-Iz for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 15:02:42 -0400 Received: from mail-oa0-x235.google.com ([2607:f8b0:4003:c02::235]:43330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEk0M-0007EJ-ER for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 15:02:38 -0400 Received: by mail-oa0-f53.google.com with SMTP id j17so1000113oag.26 for ; Tue, 05 Aug 2014 12:02:37 -0700 (PDT) In-Reply-To: (Charles Berry's message of "Tue, 5 Aug 2014 18:05:08 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Charles Berry Cc: emacs-orgmode@gnu.org Charles Berry writes: > Eric Schulte gmail.com> writes: > >> >> Andreas Kiermeier gmail.com> writes: >> >> > On 4 August 2014 21:23, Eric Schulte gmail.com> wrote: >> >> Why are you setting the output type to "graphics" when you are trying to > >> >> Hi Andreas, >> >> I can't reproduce your problem. I get the following from your minimal >> example when run in an Org-mode file, and from the command line. They >> are identical. Are you using the latest version of Org-mode? >> >> Best, >> Eric >> > [snip] >> >> [Previously saved workspace restored] >> >> > x <- rnorm(100) >> > y <- quantile(x, probs=seq(0,1,0.1)) >> > names(y) <- > as.character(c("0",".1",".2",".3",".4",".5",".6",".7",".8",".9","1")) >> > y >> 0 .1 .2 .3 .4 .5 >> -2.53624773 -1.30846042 -0.70659822 -0.43565010 -0.24318346 -0.01034625 >> .6 .7 .8 .9 1 >> 0.24125644 0.49945059 0.92032314 1.36423669 2.83357915 >> > >> >> >> > > > 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. The Babel R support needs a dedicated maintainer. This was a role Dan Davison originally filled. I've partially filled in since, but as a *very* light R user I'm not the best person. > > HTH, > > Chuck > > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)