From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . "") Date: Thu, 29 Sep 2011 13:16:16 -0600 Message-ID: <87y5x76txb.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9M5o-00035L-KI for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 15:16:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9M5n-0004cc-5V for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 15:16:24 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:58112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9M5m-0004cS-Vu for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 15:16:23 -0400 Received: by pzk4 with SMTP id 4so2483525pzk.6 for ; Thu, 29 Sep 2011 12:16:21 -0700 (PDT) In-Reply-To: (Leo Alekseyev's message of "Thu, 29 Sep 2011 14:57:02 -0400") 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: Leo Alekseyev Cc: emacs-orgmode@gnu.org Hi Leo, On my system with the latest Org-mode I get the following slightly more helpful error message. variable "foo" must be assigned a default value Please add a default value to the foo variable for export and evaluation of the code block to work. Best -- Eric Leo Alekseyev writes: > Here is what's in my org file: > > ------------------------8<-------- > #+title: My org file > #+babel: :session *R-babel* :tangle yes > > * The problem > ** The code > This is going to fail on export: > > #+source: test_code > #+BEGIN_SRC R :results output silent :exports none :var foo > bar <- foo > #+END_SRC > > Why does this fail? > #+call: test_code(foo=200) > #+results: test_code(foo=200) > ------------------------8<-------- > > Simple, right? Yet, when I try to do org-export-as-html, I get: > > executing R code block (test_code)... > result is "" > "" > executing Emacs-Lisp code block... > > (results (quote "")) > > Code block produced no output. > org-babel-exp-code: Wrong type argument: stringp, (results . "") > > This happens with the latest org-mode from trunk, as well as my > few-months-old version. What's going on? > -- Eric Schulte http://cs.unm.edu/~eschulte/