From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: R code block produces only partial output Date: Tue, 5 Aug 2014 18:05:08 +0000 (UTC) Message-ID: References: <87iom8zd24.fsf@gmail.com> <877g2oz9gv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEj7A-0005nP-Hd for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 14:05:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEj72-0007u6-Hp for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 14:05:36 -0400 Received: from plane.gmane.org ([80.91.229.3]:39389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEj72-0007tk-C1 for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 14:05:28 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XEj6w-0005D5-AM for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 20:05:22 +0200 Received: from 137.110.37.127 ([137.110.37.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Aug 2014 20:05:22 +0200 Received: from ccberry by 137.110.37.127 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Aug 2014 20:05:22 +0200 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: emacs-orgmode@gnu.org 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 "\\." ? HTH, Chuck