From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: Output of R babel blocks with quotes is mangled/truncated Date: Sun, 8 Jul 2012 22:47:34 +0200 Message-ID: <20120708204734.GA68290@kenny.fritz.box> References: <20120708032210.GB59773@kenny.fritz.box> <87ehomxofl.fsf@tajo.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnyOO-0007go-Hd for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 16:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnyOM-0004yW-0M for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 16:47:44 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:59055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnyOL-0004y6-MU for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 16:47:41 -0400 Received: by bkcjc3 with SMTP id jc3so6981118bkc.0 for ; Sun, 08 Jul 2012 13:47:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87ehomxofl.fsf@tajo.ucsd.edu> 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: emacs-orgmode@gnu.org Hi Charles, cberry@tajo.ucsd.edu wrote: > Viktor Rosenfeld writes: > > > Hi, > > > > if a value outputted by R in a Babel block contains quotes only the > > quoted parted is exported. > > > > Try > > #+begin_src R :results verbatim > q = 'cat="S"' > q > > #+end_src This is not a solution since I want to output vectors or data frames from R as a table. E.g. the following should return a table, but verbatim returns a quoted block which I cannot use further in my processing: #+NAME: quote-mangling #+BEGIN_SRC R q = c('cat="S"', 'pos="VVFIN"') q #+END_SRC I also tried an extra newline at the end, but it makes no difference. Cheers, Viktor > > > Consider this: > > > > #+BEGIN_SRC R > > q = 'cat="S"' > > q > > #+END_SRC > > > > #+RESULTS: > > : S > > > > The expected result would be entire string, i.e. 'cat="S"' (without > > single quotes). Is there a workaround? I've tried escaping with > > backslashes to no avail. > > > > Cheers, > > Viktor > > > > > > -- > Charles C. Berry Dept of Family/Preventive Medicine > cberry at ucsd edu UC San Diego > http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901 > >