From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: [org-babel R] Difference between output in RStudio and in Org Babel Date: Wed, 10 Dec 2014 16:04:49 +0100 Message-ID: <86h9x3r1f2.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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