From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: table not returned Date: Wed, 28 Mar 2012 08:45:38 -0400 Message-ID: <16747.1332938738@alphaville> References: <87ty19ak2b.fsf@med.uni-goettingen.de> <87pqbx4wn7.fsf@gnu.org> <87zkb1c5jx.fsf@med.uni-goettingen.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCsGF-0001ZX-UL for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCsGD-00060j-Sr for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:45:59 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:9428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCsGD-00060W-Mq for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:45:57 -0400 In-Reply-To: Message from Andreas Leha of "Wed, 28 Mar 2012 13:45:38 +0200." <87zkb1c5jx.fsf@med.uni-goettingen.de> 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: Andreas Leha Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Andreas Leha wrote: > > Hi Bastien, > > thanks for looking into this! > > > Bastien writes: > > > Andreas Leha writes: > > > >> #+begin_src R :results table > >> data.frame(parameter=c("parameter", "", "param1"), > >> mean=c("mean sd", "", "1.1 0.1"), > >> median=c("median", "(minimum;maximum)", "1 (1;2)")) > >> #+end_src > >> > >> #+results: > > > > I can't test this because of the character. > ^^^^^ > This character got lost on the mailing list. I guess the offending > character was the plus-minus character. > > This should be testable, I hope: > > ,---- > | #+begin_src R :results table > | data.frame(parameter=c("parameter", "", "param1"), > | mean=c("mean +- sd", "", "1.1 +- 0.1"), > | median=c("median", "(minimum;maximum)", "1 (1;2)")) > | #+end_src > | > | #+results: > `---- > > Again, this works as expected, if "(minimum" is replaced by "minimum". > This happens in org-babel-import-elisp-from-file, when org-babel-string-read is mapped on each row. To wit: (org-babel-string-read "foo)") --> "foo)" but (org-babel-string-read "(foo)") --> Error The backtrace for the error says: ,---- | Debugger entered--Lisp error: (void-function foo) | (foo) | eval((foo)) | (if (and (not inhibit-lisp-eval) (member (substring cell 0 1) (quote ("(" "'" "`" "[")))) (eval (read cell)) (if (string= (substring cell 0 1) "\"") (read cell) (progn (set-text-properties 0 (length cell) nil cell) cell))) | (or (org-babel-number-p cell) (if (and (not inhibit-lisp-eval) (member (substring cell 0 1) (quote ("(" "'" "`" "[")))) (eval (read cell)) (if (string= (substring cell 0 1) "\"") (read cell) (progn (set-text-properties 0 (length cell) nil cell) cell)))) | (if (and (stringp cell) (not (equal cell ""))) (or (org-babel-number-p cell) (if (and (not inhibit-lisp-eval) (member (substring cell 0 1) (quote ("(" "'" "`" "[")))) (eval (read cell)) (if (string= (substring cell 0 1) "\"") (read cell) (progn (set-text-properties 0 (length cell) nil cell) cell)))) cell) | org-babel-read("(foo)") | org-babel-string-read("(foo)") `---- Nick