From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . "") Date: Thu, 29 Sep 2011 16:05:12 -0400 Message-ID: References: <87y5x76txb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Mr7-0000Cg-I0 for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 16:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9Mr5-000159-2i for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 16:05:17 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:61608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Mr4-00014s-Hp for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 16:05:15 -0400 Received: by pzk4 with SMTP id 4so2576459pzk.6 for ; Thu, 29 Sep 2011 13:05:13 -0700 (PDT) In-Reply-To: <87y5x76txb.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org I changed the line to #+BEGIN_SRC R :results output silent :exports none :var foo=0, but it gives me the same error as before. Running on the old-ish version of org (from January, commit 8be17c8c62a8fb402a2ebf1c963a4e9f8f5dec53). On 9/29/11, Eric Schulte wrote: > 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/ >