From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Evaluation of R code block depends on case of keywords??? Date: Fri, 19 Aug 2011 13:36:46 -1000 Message-ID: References: <1313794744.82205.YahooMailNeo@web161913.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuYcY-0006Zz-F0 for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 19:37:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuYcT-0006kN-7x for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 19:37:02 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:45130) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QuYcT-0006ii-1E for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 19:36:57 -0400 In-Reply-To: <1313794744.82205.YahooMailNeo@web161913.mail.bf1.yahoo.com> (Michael Hannon's message of "Fri, 19 Aug 2011 15:59:04 -0700 (PDT)") 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: Michael Hannon Cc: Org-Mode List Michael Hannon writes: > Greetings.=C2=A0 I happened to notice that in evaluating R source-code bl= ocks in an > Org-Mode file I got some cruft from my .Rprofile in the output on some > occasions but not on others. > > To my surprise, it appears that the CASE of the keywords on the BEGIN_SRC= line > affects the output.=C2=A0 Please see the appended for a simple example. > > I haven't been able to find this behavior documented any place, but of co= urse > it's possible I just missed it. > > Can somebody confirm/deny that Org-Mode is SUPPOSED to behave this way? > > Thanks, > > -- Mike > > > * Mike's test of UPPER CASE keywords > > #+BEGIN_SRC R :RESULTS output :EXPORTS both > > =C2=A0=C2=A0=C2=A0 x <- rnorm(5) > > #+END_SRC > > #+results: > |=C2=A0=C2=A0 -1.78820283900565 | > |=C2=A0 -0.469227269149123 | > |=C2=A0=C2=A0 -0.92353467915834 | > | -0.0831621941877021 | > |=C2=A0=C2=A0=C2=A0 -1.5583681234565 | > > > > * Mike's test of lower case keywords > > #+BEGIN_SRC R :results output :exports both > > =C2=A0=C2=A0=C2=A0 x <- rnorm(5) > > #+END_SRC > > #+results: > :=20 > :=20 > : All ready to go... > :=20 > : Fri Aug 19 15:46:15 2011=20 > : Hasta la vista! Hi Mike, I believe what is happening is that :RESULTS and :EXPORTS are not recognized, so :results (the correct header argument) defaults to value. hth, Tom --=20 Thomas S. Dye http://www.tsdye.com