all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* creating a list from an R source block
@ 2012-09-04 16:42 Greg Tucker-Kellogg
  2012-09-04 16:55 ` John Hendy
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Tucker-Kellogg @ 2012-09-04 16:42 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

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: 
- ("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


	

[-- Attachment #2: Type: text/html, Size: 1440 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-04 22:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 16:42 creating a list from an R source block Greg Tucker-Kellogg
2012-09-04 16:55 ` John Hendy
2012-09-04 22:43   ` Greg Tucker-Kellogg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.