From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Kiermeier Subject: Re: R code block produces only partial output Date: Tue, 5 Aug 2014 14:01:54 +0930 Message-ID: References: <87iom8zd24.fsf@gmail.com> <877g2oz9gv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEWQO-0008HT-2j for Emacs-orgmode@gnu.org; Tue, 05 Aug 2014 00:32:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEWQM-0002q0-PM for Emacs-orgmode@gnu.org; Tue, 05 Aug 2014 00:32:35 -0400 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:50463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEWQM-0002pw-KK for Emacs-orgmode@gnu.org; Tue, 05 Aug 2014 00:32:34 -0400 Received: by mail-qa0-f52.google.com with SMTP id j15so396967qaq.39 for ; Mon, 04 Aug 2014 21:32:34 -0700 (PDT) In-Reply-To: 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: John Hendy Cc: emacs-orgmode , Eric Schulte On 5 August 2014 13:30, John Hendy wrote: > I can reproduce with a minimal config and on Linux (to toss in a > confirmation). I *also* accidentally just stumbled on a way I can > toggle the behavior between correct and incorrect! It arose because my > file was not able to use the #+PROPERTY settings you have -- my > results were not obeying what I had set. I looked around and believe > the syntax is correct per this page: > - http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html Thanks for confirming this John! I couldn't see how the #+PROPERTY settings I had differed from those in the link ... I recall getting them from there (but maybe I mistyped something?). So I copied what you provided for the rest of my testing. Getting rid of :session all together did produce the correct results for me, too. However, including a :session in either #+PROPERTY or at the beginning of the code block did not - irrespective of whether I used *R* or simply r. > Correct results: > > #+begin_src org > > #+STARTUP: showall indent hidestars > #+PROPERTY: header-args:R :session r > > #+BEGIN_SRC R :results output drawer > require(rms) > set.seed(123) > x <- rnorm(100) > describe(x) > #+END_SRC [snip] So, this example did *not* work for me. > The reason, I think, is this (also correct): > > #+begin_src org > > #+STARTUP: showall indent hidestars > > > #+BEGIN_SRC R :results output drawer > require(rms) > set.seed(123) > x <- rnorm(100) > describe(x) > #+END_SRC Yes, without a session it seems to work fine. Thanks, Andreas