emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] R and babel on Windows problem


From: Nick Dokos
Subject: Re: [O] R and babel on Windows problem
Date: Mon, 02 Jul 2012 17:26:09 -0400

John Hendy <address@hidden> wrote:

> On Fri, Jun 29, 2012 at 3:16 PM, Nick Dokos <address@hidden> wrote:
> > John Hendy <address@hidden> wrote:
> >
> >> On Fri, Jun 29, 2012 at 2:37 PM, Nick Dokos <address@hidden> wrote:
> >> > John Hendy <address@hidden> wrote:
> >> >
> >> >> On Fri, Jun 29, 2012 at 1:26 PM, Achim Gratz <address@hidden> wrote:
> >> >> > [re-sent]
> >> >> >
> >> >> > John Hendy writes:
> >> >> >> I typically use orgmode + babel on Linux and have no problems. Trying
> >> >> >> to run on Windows 7 and having issues...
> >> >> >>
> >> >> >> (setq org-babel-R-command "C:/Program\ Files/R/R-2.15.0/bin/R")
> >> >> >
> >> >> > Try the 8.3 compatible name to avoid the space in the path.  If it 
> >> >> > ever
> >> >> > goes through more than one level of unquoting it will otherwise break.
> >> >> >
> >> >> > (setq org-babel-R-command "C:/Progra~1/R/R-2.15.0/bin/R")
> >> >>
> >> >> Same error. Also, curiously, =M-x customize-variable RET org-babel-R
> >> >> TAB= yields no results... is this the right variable?
> >> >>
> >>
> >>
> >> > It is, but it seems not to have a customizable interface I guess: I get
> >> > the same result you do with customize-variable. OTOH, C-h v
> >> > org-babel-R-TAB brings it up with no problem.
> >>
> >> Good call. It comes up with that and is set to the above (Progra~1
> >> version) but is still saying command not found when I try C-c C-c on a
> >> babel block.
> >>
> >> Any debug methods?
> >>
> >
> > edebug org-babel-R-evaluate-external-process and single step through it
> > perhaps? I would clean up .elc files and start a new emacs before trying
> > that just to makee sure that I have a clean slate. You might have to go
> > down to org-babel-eval as well and single step through that.
> 
> Just did a fresh git clone and make via the updated non-gnu-tools
> method on worg.
> 
> The above = `M-x edebug org-babel-R-evaluate-external-process`?
> 
> I've never done this. When I do `M-x edebug TAB` I get various edebug
> completions but not it as a standalone command.
> 

Oh, sorry: edebug is described in

(info "(elisp) Edebug")

The basics: visit ob-R.el, go to the org-babel-R-evaluate-external-process
definition and press C-u C-M-x. Then do whatever you were doing to get the
problem. It should stop at the function and you can single-step by pressing
SPACE. At strategic points, you can evaluate things with "e".

If you mess it up (and you probably will a few times), no problem: just try
again. And be patient!

Good luck,
Nick



> 
> John
> 
> 
> >
> > Nick
> >
> >> Using =M-x R= works find. ESS is finding R. I successfully loaded a
> >> .csv, ggplot2 and plotted.
> >>
> >>
> >> John
> >>
> >> John
> >>
> >> >
> >> > Nick
> >> >
> >>
> 



reply via email to

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