From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: [BUG] R src blocks untabify literal constant TABs Date: Tue, 22 Sep 2015 15:04:26 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeVfr-0006MD-GZ for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 18:04:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeVfo-0003GU-Ph for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 18:04:31 -0400 Received: from iport-bcv2-out.ucsd.edu ([132.239.0.73]:59313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeVfo-0003G5-HS for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 18:04:28 -0400 Received: from [137.110.37.142] (unknown [137.110.37.142]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ccberry@ad.ucsd.edu) by act-bufferout-b1.ucsd.edu (Postfix) with ESMTPSA id A612A5042 for ; Tue, 22 Sep 2015 15:04:26 -0700 (PDT) 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-Mode mailing list ECM follows: Make a string of three characters :'A', '', 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