Skip to content

Instantly share code, notes, and snippets.

@gtuckerkellogg
Created September 4, 2012 08:48
Show Gist options
  • Save gtuckerkellogg/3618678 to your computer and use it in GitHub Desktop.
Save gtuckerkellogg/3618678 to your computer and use it in GitHub Desktop.

This is not what I was expecting. How can I get rid of the parentheses and the quotations?

c("x","y","z")
#+RESULTS:
- ("x")
- ("y")
- ("z")

Here’s the Ruby equivalent of what I’d like to see

["x" , "y", "z" ] 
#+RESULTS:
- x
- y
- z
@demon386
Copy link

demon386 commented Sep 4, 2012

Try to delete the "list" in your header.

@gtuckerkellogg
Copy link
Author

The best solution seems to be

#+begin_src R :exports results :results output raw
  cat(paste("-",c("x","y","z")),sep="\n")
#+end_src`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment