emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [BUG] R src blocks untabify literal constant TABs


From: Charles C. Berry
Subject: [O] [BUG] R src blocks untabify literal constant TABs
Date: Tue, 22 Sep 2015 15:04:26 -0700
User-agent: Alpine 2.20 (OSX 67 2015-01-07)


ECM follows:

Make a string of three characters :'A', '<TAB>', and 'B':

#+BEGIN_SRC R
res <- paste0("A","\t","B")
nchar(res)
#+END_SRC

#+RESULTS:
: 3

Make a src block in which the string appears literally, then execute the resulting src block:

#+BEGIN_SRC R  :results raw :wrap "src R"
  res <- paste0("A","\t","B")
  paste0("nchar(\"",res,"\")")
#+END_SRC

#+RESULTS:
#+BEGIN_src R
nchar("A   B")
#+END_src

#+RESULTS:
: 10

Ouch!

--

I don't have time to dig into this now, but thought I'd get it on the record.


Chuck



reply via email to

[Prev in Thread] Current Thread [Next in Thread]