From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Problems with Org-Mode export Date: Fri, 16 Sep 2011 10:50:01 -0700 (PDT) Message-ID: <1316195401.36711.YahooMailNeo@web161909.mail.bf1.yahoo.com> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1993317216-1316195401=:36711" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4cY8-0007yx-Tm for emacs-orgmode@gnu.org; Fri, 16 Sep 2011 13:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4cY6-0001oN-Rw for emacs-orgmode@gnu.org; Fri, 16 Sep 2011 13:50:04 -0400 Received: from nm16-vm0.bullet.mail.bf1.yahoo.com ([98.139.212.253]:23508) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1R4cY6-0001o7-Kv for emacs-orgmode@gnu.org; Fri, 16 Sep 2011 13:50: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: Org-Mode List --0-1993317216-1316195401=:36711 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Greetings.=A0 I've been having problems lately in exporting Org-Mode source= -code=0Adocuments to HTML and/or PDF.=0A=0AI'm running Org-Mode 7.7 with Em= acs 23 on 64-bit linux (Fedora 15).=0A=0AI've appended a document that exhi= bits at least some of the problem.=A0 The=0Aproblems are similar to the pro= blem described at:=0A=0A=A0=A0=A0 http://comments.gmane.org/gmane.emacs.org= mode/45316=0A=0Aand can *sometimes* be circumvented by executing org-reload= .=0A=0AIn the particular example shown below, the HTML export works as expe= cted, but=0Athe PDF export fails with message:=0A=0A=A0=A0=A0 org-export-la= tex-preprocess: Wrong type argument: stringp, nil=0A=0ABy the way, everythi= ng worked fine in the example until I added the last=0Asource block:=0A=0A= =A0=A0=A0 #+begin_src R=0A=0A=A0=A0=A0=A0=A0 x=0A=0A=A0=A0=A0 #+end_src=0A= =0AI tried using what I take to be the latest version of Org-Mode:=0A=0A=A0= =A0=A0 Org-mode version 7.7 (release_7.7.290.g65d05)=0A=0Abut that only mad= e things worse.=A0 I tried an HTML export with this version, and=0Ait gener= ated a horrendous-looking message that begins with:=0A=0Aorg-babel-R-evalua= te: Wrong number of arguments: #[(session body result-type=0Aresult-params = column-names-p row-names-p) =C6=3D}...=0A=0Afollowed by a bunch of stuff co= ntaining enough non-printing characters that=0Ait's hard to reproduce in em= ail, and ending with:=0A=0A...org-mode/lisp/ob-R.elc" . 9734)], 5=0A=0AI'd = welcome any help/advice that anybody can provide.=0A=0AThanks,=0A=0A-- Mike= =0A=0A########## Sample file that exhibits some export problems=0A=0A#+TITL= E: This is a test=0A=0A#+AUTHOR: Michael Hannon=0A#+email: jm_hannon@yahoo.= com=0A=0A#+BABEL: :session *R* :cache yes :results output graphics :exports= both :tangle yes=0A=0A* Getting Started=0A=0A** Batch Mode=0A=0A=0A#+begin= _src R :exports code=0A=0Apdf("xh.pdf") # set graphical output file=0Ahist(= rnorm(100)) # generate 100 N(0,1) variates and plot their histogram=0Adev.o= ff() # close the graphical output file=0A=0A#+end_src=0A=0AIf we put the co= de above in a file called =3Dz.R=3D, we can execute the=0Acode from the com= mand line via: =3DR CMD BATCH z.R=3D=0A=0A=0A#+begin_src R=0A=A0 =0A=A0 x <= - c(1, 3, 5)=0A=A0 =0A#+end_src=0A=0A#+begin_src R=0A=0A=A0 x[3]=0A=0A#+end= _src=0A=0A#+begin_src R=0A=0A=A0 q <- c(x,x,8)=0A=0A#+end_src=0A=0A#+begin_= src R=0A=0A=A0 x=0A=0A#+end_src --0-1993317216-1316195401=:36711 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Greetings.  I've been ha= ving problems lately in exporting Org-Mode source-code
documents to HTML= and/or PDF.

I'm running Org-Mode 7.7 with Emacs 23 on 64-bit linux = (Fedora 15).

I've appended a document that exhibits at least some of= the problem.  The
problems are similar to the problem described at= :

    http://comments.gmane.org/gmane.emacs.orgmode/4= 5316

and can *sometimes* be circumvented by executing org-reload.
In the particular example shown below, the HTML export works as expect= ed, but
the PDF export fails with message:

    org= -export-latex-preprocess: Wrong type argument: stringp, nil

By the w= ay, everything worked fine in the example until I added the last
source = block:

    #+begin_src R

      x

    #+end_= src

I tried using what I take to be the latest version of Org-Mode:<= br>
    Org-mode version 7.7 (release_7.7.290.g65d05)
=
but that only made things worse.  I tried an HTML export with this= version, and
it generated a horrendous-looking message that begins with= :

org-babel-R-evaluate: Wrong number of arguments: #[(session body r= esult-type
result-params column-names-p row-names-p) =C6=3D}...

f= ollowed by a bunch of stuff containing enough non-printing characters that<= br>it's hard to reproduce in email, and ending with:

...org-mode/lis= p/ob-R.elc" . 9734)], 5

I'd welcome any help/advice that anybody can= provide.

Thanks,

-- Mike

########## Sample file that = exhibits some export problems

#+TITLE: This is a test

#+AUTHO= R: Michael Hannon
#+email: jm_hannon@yahoo.com

#+BABEL: :session *R* :cache yes :results output graphics :exports both :tangle yes=

* Getting Started

** Batch Mode


#+begin_src R :ex= ports code

pdf("xh.pdf") # set graphical output file
hist(rnorm(1= 00)) # generate 100 N(0,1) variates and plot their histogram
dev.off() #= close the graphical output file

#+end_src

If we put the code= above in a file called =3Dz.R=3D, we can execute the
code from the comm= and line via: =3DR CMD BATCH z.R=3D


#+begin_src R
 
=   x <- c(1, 3, 5)
 
#+end_src

#+begin_src R
<= br>  x[3]

#+end_src

#+begin_src R

  q <- = c(x,x,8)

#+end_src

#+begin_src R

  x

#+end= _src

--0-1993317216-1316195401=:36711--