From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Re: Problems with Org-Mode export Date: Tue, 20 Sep 2011 18:09:15 -0700 (PDT) Message-ID: <1316567355.18424.YahooMailNeo@web161920.mail.bf1.yahoo.com> References: <1316195401.36711.YahooMailNeo@web161909.mail.bf1.yahoo.com> <1316547083.4870.YahooMailNeo@web161916.mail.bf1.yahoo.com> <2859.1316550566@alphaville.dokosmarshall.org> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-1554234088-578875110-1316567355=:18424" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6BJP-0005P2-8r for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 21:09:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6BJM-0001qD-Ut for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 21:09:19 -0400 Received: from nm6-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.146]:45745) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1R6BJM-0001q5-IN for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 21:09:16 -0400 In-Reply-To: <2859.1316550566@alphaville.dokosmarshall.org> 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: "nicholas.dokos@hp.com" Cc: Org-Mode List ---1554234088-578875110-1316567355=:18424 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Nick Dokos wrote:=0A=0A> [...]=0A=0A> FWIW, I don't= get any error messages. I have no idea what the exported file=0A> should l= ook like: I attach both the exported pdf and the exported html below=0A> (a= s well as the org file, which is just cut-n-pasted from what you posted).= =0A=A0=0A> Versions:=0A=0A> Org-mode version 7.7 (release_7.7.224.g6e14) GN= U Emacs 24.0.50.2=0A> (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 20= 11-09-13=0A=0A> I'll pull the newest bits and try again.=0A=0AThanks, Nick.= =A0This is getting curiouser and curiouser. =A0I can now reliably=0Aget do= cuments exported using the vanilla 7.7 Org-Mode, but not with the=0Adevelop= ment version I currently have installed:=0A=0A=A0 =A0 Org-mode version 7.7 = (release_7.7.304.g9da4)=0A=0AI suspect that the following bit of the error = message is the relevant one:=0A=0A=A0 =A0 org-babel-R-evaluate: Wrong numbe= r of arguments: #[(session body result-type=0A=A0 =A0 result-params column-= names-p row-names-p=0A=0Abut I don't know what to make of it.=0A=0AIn order= to simplify the discussion, I've been working with some Org code that=0AI = took from the "worg" web site. =A0Please see below for details.=0A=0AI've a= lso appended the pieces of my .emacs file that relate to finding Org=0Afile= s.=0A=0AAt this point I guess I'm ready to declare victory and slink away, = but it=0AWOULD be interesting to know what's going on.=0A=0A-- Mike=0A=0A= =0A----------=0A=0A#+TITLE: Test=A0=0A#+AUTHOR: Michael Hannon=0A#+EMAIL: j= m_hannon@yahoo.com=0A#+BABEL: :session *R* :cache yes :results output graph= ics :exports both :tangle yes=A0=0A=0A#### Example taken from:=0A#### =A0 = =A0http://orgmode.org/worg/org-contrib/babel/how-to-use-Org-Babel-for-R.htm= l=0A=0A* Example of Org-Babel for R Literate Programming=0A** R text output= =0AA simple summary.=A0=0A#+begin_src R=A0=0A=A0 x <- rnorm(10)=0A=A0 summa= ry(x)=0A#+end_src=0A=0A** R graphics output=0ANote we use the object =3Dx= =3D generated in previous code block, thanks to=0Athe header option =3D:ses= sion *R*=3D. =A0The output graphics file is=0A=3Da.png=3D.=A0=0A=0A#+begin_= src R =A0:file a.png=0A=A0 y <- rnorm(10)=0A=A0 plot(x, y)=0A#+end_src=0A= =0ASame plot with larger dimension:=0A=0A#+begin_src R =A0:file b.png :widt= h 800 :height 800=0A=A0 plot(x, y)=0A#+end_src=0A=0A=0A---------- Org-Mode = path variables, standard and devel versions=0A=0A(setq load-path (cons "/us= r/local/emacs.d/ssh" load-path))=0A(require 'ssh)=0A=0A;;;;;;(setq load-pat= h (cons "/usr/local/emacs.d/org-mode/org-7.7/lisp" load-path))=0A=0A;;;;;;(= setq load-path (cons "/usr/local/emacs.d/org-mode/org-7.7/contrib/lisp" loa= d-path))=0A=0A(setq load-path (cons "/usr/local/emacs.d/org-mode/org-devel/= org-mode/lisp" load-path))=0A=0A(setq load-path (cons "/usr/local/emacs.d/o= rg-mode/org-devel/org-mode/contrib/lisp" load-path))=0A=0A(require 'org-ins= tall)=0A ---1554234088-578875110-1316567355=:18424 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Nick Dokos <nicholas.dok= os@hp.com> wrote:
> should look like: I = attach both the exported pdf and the exported html below
> (as= well as the org file, which is just cut-n-pasted from what you posted).
 
> Versions:

> Org-m= ode version 7.7 (release_7.7.224.g6e14) GNU Emacs 24.0.50.2
> = (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-09-13
> I'll pull the newest bits and try again.

Thanks, Nick.  This is getting curiou= ser and curiouser.  I can now reliably
get documents exporte= d using the vanilla 7.7 Org-Mode, but not with the
development ve= rsion I currently have installed:

    Or= g-mode version 7.7 (release_7.7.304.g9da4)

I suspe= ct that the following bit of the error message is the relevant one:

    org-babel-R-evaluate: Wrong number of argum= ents: #[(session body result-type
    result-params col= umn-names-p row-names-p

but I don't know what to m= ake of it.

In order to simplify the discussion, I'= ve been working with some Org code that
I took from the "worg" we= b site.  Please see below for details.

I've a= lso appended the pieces of my .emacs file that relate to finding Org
files.

At this point I guess I'm re= ady to declare victory and slink away, but it
WOULD be interestin= g to know what's going on.

-- Mike

<= /div>

----------

#+TITLE: Test&= nbsp;
#+AUTHOR: Michael Hannon
#+EMAIL: jm_hannon@yahoo= .com
#+BABEL: :session *R* :cache yes :results output graphics :e= xports both :tangle yes 

#### Example taken f= rom:
####    http://orgmode.org/worg/org-contrib/babel/= how-to-use-Org-Babel-for-R.html

* Example of Org-B= abel for R Literate Programming
** R text output
A simp= le summary. 
#+begin_src R 
  x <- rn= orm(10)
  summary(x)
#+end_src

** R graphics output
Note we use the object =3Dx=3D generated in previous code block, thanks to
the header option = =3D:session *R*=3D.  The output graphics file is
=3Da.png=3D= . 

#+begin_src R  :file a.png
=   y <- rnorm(10)
  plot(x, y)
#+end_src

Same plot with larger dimension:

#+begin_src R  :file b.png :width 800 :height 800
&nbs= p; plot(x, y)
#+end_src


-= --------- Org-Mode path variables, standard and devel versions
(setq load-path (cons "/usr/local/emacs.d/ssh" load-path))
(require 'ssh)

;;;;;;(setq load-path (cons = "/usr/local/emacs.d/org-mode/org-7.7/lisp" load-path))

=
;;;;;;(setq load-path (cons "/usr/local/emacs.d/org-mode/org-7.7/contr= ib/lisp" load-path))

(setq load-path (cons "/usr/local/emacs.d/org-mode/org-devel/org-mode/lisp" load-path))

(setq load-path (cons "/usr/local/emacs.d/org-mode/org-dev= el/org-mode/contrib/lisp" load-path))

(require 'or= g-install)

---1554234088-578875110-1316567355=:18424--