From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Evaluation of R code block depends on case of keywords??? Date: Fri, 19 Aug 2011 15:59:04 -0700 (PDT) Message-ID: <1313794744.82205.YahooMailNeo@web161913.mail.bf1.yahoo.com> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-135029788-1313794744=:82205" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuY1s-0004jl-Uy for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 18:59:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuY1r-00011b-Ff for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 18:59:08 -0400 Received: from nm26.bullet.mail.bf1.yahoo.com ([98.139.212.185]:32532) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QuY1r-0000zE-Ah for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 18:59:07 -0400 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: Org-Mode List --0-135029788-1313794744=:82205 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Greetings.=A0 I happened to notice that in evaluating R source-code blocks = in an=0AOrg-Mode file I got some cruft from my .Rprofile in the output on s= ome=0Aoccasions but not on others.=0A=0ATo my surprise, it appears that the= CASE of the keywords on the BEGIN_SRC line=0Aaffects the output.=A0 Please= see the appended for a simple example.=0A=0AI haven't been able to find th= is behavior documented any place, but of course=0Ait's possible I just miss= ed it.=0A=0ACan somebody confirm/deny that Org-Mode is SUPPOSED to behave t= his way?=0A=0AThanks,=0A=0A-- Mike=0A=0A=0A* Mike's test of UPPER CASE keyw= ords=0A=0A#+BEGIN_SRC R :RESULTS output :EXPORTS both=0A=0A=A0=A0=A0 x <- r= norm(5)=0A=0A#+END_SRC=0A=0A#+results:=0A|=A0=A0 -1.78820283900565 |=0A|=A0= -0.469227269149123 |=0A|=A0=A0 -0.92353467915834 |=0A| -0.0831621941877021= |=0A|=A0=A0=A0 -1.5583681234565 |=0A=0A=0A=0A* Mike's test of lower case k= eywords=0A=0A#+BEGIN_SRC R :results output :exports both=0A=0A=A0=A0=A0 x <= - rnorm(5)=0A=0A#+END_SRC=0A=0A#+results:=0A: =0A: =0A: All ready to go...= =0A: =0A: Fri Aug 19 15:46:15 2011 =0A: Hasta la vista! --0-135029788-1313794744=:82205 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Greetings.  I happened t= o notice that in evaluating R source-code blocks in an
Org-Mode file I g= ot 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.  Please see the appended = for a simple example.

I haven't been able to find this behavior docu= mented any place, but of course
it's possible I just missed it.

C= an somebody confirm/deny that Org-Mode is SUPPOSED to behave this way?
<= br>Thanks,

-- Mike


* Mike's test of UPPER CASE keywords
#+BEGIN_SRC R :RESULTS output :EXPORTS both

   = x <- rnorm(5)

#+END_SRC

#+results:
|   -1.78= 820283900565 |
|  -0.469227269149123 |
|   -0.92353467915834 |
| -0.0831621941877021 |
|    -1.5= 583681234565 |



* Mike's test of lower case keywords

#= +BEGIN_SRC R :results output :exports both

    x <= - rnorm(5)

#+END_SRC

#+results:
:
:
: All ready to= go...
:
: Fri Aug 19 15:46:15 2011
: Hasta la vista!

--0-135029788-1313794744=:82205--