From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] BUG in :session Date: Wed, 21 Sep 2011 13:32:09 -0600 Message-ID: <87hb45d73i.fsf@gmail.com> References: <4E79C82A.9000809@gmail.com> <878vpidj5d.fsf@gmail.com> 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]:35488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6SXA-0005Gf-3x for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 15:32:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6SX8-0006ue-GQ for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 15:32:40 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:53150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6SX8-0006tU-Dh for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 15:32:38 -0400 Received: by yia25 with SMTP id 25so1714791yia.0 for ; Wed, 21 Sep 2011 12:32:37 -0700 (PDT) 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: Martyn Jago Cc: emacs-orgmode@gnu.org Martyn Jago writes: > Hi Eric > > Eric Schulte writes: > >> Hi Rainer, >> >> Thanks for finding this bug, I introduced it in one of my recent >> changes. I've just pushed up a fix and a test case. >> >> Best -- Eric >> > > Unfortunately this test introduces an external dependency for R (which I > haven't currently got on my system so fails here). Not sure if that is > avoidable - I have no problem installing it if not.=20 > Yes, I think we're going to have to start putting some conditional checks into org-test-run-all-tests so that only those code block tests for which the required languages exist on the user's system are run. I don't know the best way to handle this. > > I also noticed it is `providing 'test-ob-fortran' as opposed to > `test-ob-R'. Thanks, was moving too quickly this morning. > The good news is it demonstrates my automated test server is working > which is how I am on it so quick! > Indeed, it is great to have this safety net. Thanks -- Eric > > Best, Martyn > >> Rainer M Krug writes: >> >>> Hi >>> >>> Org-mode version 7.7 (release_7.7.311.g0c099) >>> >>> If execute (Ctrl-c) the code below >>> >>> * load data >>> #+begin_src R :tangle no :export results :session R >>> paste("Yep!") >>> #+end_src >>> >>> I get an error: >>> >>> ########## >>> executing R code block... >>> org-babel-R-evaluate: Wrong number of arguments: #[(session body >>> result-type result-params column-names-p row-names-p) "=C3=86=3D=C2=83= } >>> ########## >>> only much longer and lots of strange characters. >>> >>> >>> >>> * load data >>> #+begin_src R :tangle no :export results >>> paste("Yep!") >>> #+end_src >>> >>> #+results: >>> : Yep! >>> >>> works as expected >>> >>> So I assume there is a problem in the :session header argument. >>> >>> Cheers, >>> >>> Rainer >>> >>> >>> -- >>> >>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation >>> Biology, UCT), Dipl. Phys. (Germany) >>> >>> Centre of Excellence for Invasion Biology >>> Stellenbosch University >>> South Africa >>> >>> Tel : +33 - (0)9 53 10 27 44 >>> Cell: +33 - (0)6 85 62 59 98 >>> Fax : +33 - (0)9 58 10 27 44 >>> >>> Fax (D): +49 - (0)3 21 21 25 22 44 >>> >>> email: Rainer@krugs.de >>> >>> Skype: RMkrug > > --=20 Eric Schulte http://cs.unm.edu/~eschulte/