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