From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Babel problem (was how do scientists use org mode?) Date: Thu, 2 Feb 2012 11:27:54 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt0S1-0006Im-UJ for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt0Rv-00036d-S1 for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:28:01 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:59524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt0Rv-00036N-Fs for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:27:55 -0500 Received: by bkbzs2 with SMTP id zs2so2808645bkb.0 for ; Thu, 02 Feb 2012 09:27:54 -0800 (PST) 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: "Christopher W. Ryan" Cc: emacs-orgmode@gnu.org Hi Chris; this digressed enough into a babel problem that I started a new subject for the list. On Thu, Feb 2, 2012 at 11:19 AM, Christopher W. Ryan wrote: > Just tried a similar thing on my computer at work: WinXP, emacs-22.3.1, > org-mode 7.7. =C2=A0I tried both R and python. =C2=A0With this in my .ema= cs file: > > ;; active Babel languages > (org-babel-do-load-languages > =C2=A0'org-babel-load-languages > =C2=A0'((R . t) > =C2=A0 (python . t) > =C2=A0 )) > > Here are the contents of the org file I am playing with: > > #+begin_src R > rnorm(10) > #+end_src > > #+begin_src python > print "Hello, World!" > #+end_src > > > C-c C-c the first block results in a message like this: > > Evaluate this R code block on your system? (yes or no) > > Answering yes yields: > > No org-babel-execute function for R! > > Trying the same in the python block yields the same results, except with > "python" substituted for "R" in all the messages. > > Any suggestions where I am going wrong? Silly question... do you have both R and python installed on your computer? Perhaps provide the paths of your R and python executable files. Win settings can be tricky sometimes. Another question would be, how do you typically use R and python directly? John > > Thanks. > > --Chris Ryan >