From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Tucker-Kellogg Subject: creating a list from an R source block Date: Wed, 5 Sep 2012 00:42:13 +0800 Message-ID: <54669FE1-F079-41EB-8C6A-9817A0F36E35@gmail.com> Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/alternative; boundary="Apple-Mail=_43D99F2A-777A-47C4-A61E-831F1FF92F23" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8wCl-0003p7-7D for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 12:42:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8wCh-0000HC-9q for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 12:42:23 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:45863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8wCh-0000H7-4l for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 12:42:19 -0400 Received: by iagk10 with SMTP id k10so10685039iag.0 for ; Tue, 04 Sep 2012 09:42:18 -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: Org Mode List --Apple-Mail=_43D99F2A-777A-47C4-A61E-831F1FF92F23 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Creating a list in Org from a Ruby Array is trivial #+BEGIN_SRC ruby :exports results :results value list ["x" , "y", "z" ]=20 #+END_SRC #+RESULTS: - x - y - z But trying the same thing from R gives a surprising (to me) result #+BEGIN_SRC R :exports results :results value list c("x","y","z") #+END_SRC #+RESULTS:=20 - ("x") - ("y") - ("z") removing the list header creates a table, but there seems to be no = straightforward way in R to create a list of elements that is treated by = Org as a list. Am I missing something? Greg =09= --Apple-Mail=_43D99F2A-777A-47C4-A61E-831F1FF92F23 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Creating a list in Org from a = Ruby Array is trivial

#+BEGIN_SRC ruby :exports results = :results value list
["x" , "y", "z" = ] 
#+END_SRC

#+RESULTS:
- x
- = y
- = z

But trying the same thing = from R gives a surprising (to me) result

#+BEGIN_SRC R :exports results :results = value = list
c("x","y","z")
#+END_SRC

#+RESULTS: 
<= div>
- ("x")
- ("y")
- = ("z")

removing the list = header creates a table, but there seems to be no straightforward way in = R to create a list of elements that is treated by Org as a list. =  Am I missing = something?

Greg


=
= --Apple-Mail=_43D99F2A-777A-47C4-A61E-831F1FF92F23--