[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [org-babel R] Difference between output in RStudio and in Org Babel
From: |
Sebastien Vauban |
Subject: |
[O] [org-babel R] Difference between output in RStudio and in Org Babel |
Date: |
Wed, 10 Dec 2014 16:04:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) |
Hello,
I have yet another [1] code chunk that produces very different results
whether it's executed in RStudio or in an Org document.
Here is the code:
#+begin_src R :results value replace :rownames yes :colnames yes
df.str <- '"liste","nb"
"item31\nitem80","2"
"item52","1"'
df <- read.csv(text=df.str, header = TRUE)
row.names(df) <- c("abc", "def")
df
#+end_src
See http://screencast.com/t/qlUVYCoLUZWA for a diff between Org Babel
and RStudio.
Of course, the problem comes from \n being interpreted as a newline, but
who's right here?
Best regards,
Seb
[1] https://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00707.html
--
Sebastien Vauban
- [O] [org-babel R] Difference between output in RStudio and in Org Babel,
Sebastien Vauban <=