emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: Achim Gratz <Stromeko@nexgo.de>, emacs-orgmode@gnu.org
Subject: Re: R and babel on Windows problem
Date: Mon, 02 Jul 2012 17:26:09 -0400	[thread overview]
Message-ID: <31262.1341264369@alphaville> (raw)
In-Reply-To: Message from John Hendy <jw.hendy@gmail.com> of "Mon, 02 Jul 2012 15:15:21 CDT." <CA+M2ft83L6=jhKS8T0XHbcD9LfBgeVOGp0M_rdpgY2_sUsv5_w@mail.gmail.com>

John Hendy <jw.hendy@gmail.com> wrote:

> On Fri, Jun 29, 2012 at 3:16 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> > John Hendy <jw.hendy@gmail.com> wrote:
> >
> >> On Fri, Jun 29, 2012 at 2:37 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> >> > John Hendy <jw.hendy@gmail.com> wrote:
> >> >
> >> >> On Fri, Jun 29, 2012 at 1:26 PM, Achim Gratz <Stromeko@nexgo.de> 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	other threads:[~2012-07-02 21:26 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 17:46 R and babel on Windows problem John Hendy
2012-06-29 14:59 ` Alexander Vorobiev
2012-06-29 15:24   ` John Hendy
2012-06-29 17:12     ` Alexander Vorobiev
2012-06-29 18:26 ` Achim Gratz
2012-06-29 19:31   ` John Hendy
2012-06-29 19:37     ` Nick Dokos
2012-06-29 20:00       ` John Hendy
2012-06-29 20:16         ` Nick Dokos
2012-07-02 20:15           ` John Hendy
2012-07-02 21:26             ` Nick Dokos [this message]
2012-07-02 21:47               ` John Hendy
2012-07-02 22:15                 ` Nick Dokos
2012-07-02 22:16                 ` John Hendy
2012-07-06 16:58                   ` John Hendy
2012-07-06 17:12                     ` Nick Dokos
2012-07-06 17:46                       ` John Hendy
2012-07-06 18:41                         ` Eric Schulte
2012-07-06 22:05                           ` John Hendy
2012-07-06 18:45                         ` Nick Dokos
2012-07-06 22:08                           ` John Hendy
2012-07-06 22:14                             ` John Hendy
2012-07-07  1:02                               ` Eric Schulte
2012-07-07  1:48                               ` Nick Dokos
2012-07-16  0:42                                 ` John Hendy
2012-06-30  5:13     ` Achim Gratz
2012-06-30 13:15       ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=31262.1341264369@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=Stromeko@nexgo.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).