emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong t


From: Leo Alekseyev
Subject: Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . "")
Date: Thu, 29 Sep 2011 16:05:12 -0400

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 <address@hidden> 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 <address@hidden> 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/
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]