From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Missing newline in R code causes Org-Mode eval to hang Date: Mon, 17 Oct 2011 16:57:00 -0400 Message-ID: <9130.1318885020@alphaville.americas.hpqcorp.net> References: <1318881451.32666.YahooMailNeo@web161920.mail.bf1.yahoo.com> <80botfjr1f.fsf@somewhere.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFuFH-0000pm-OS for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 16:57:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFuFG-0002MV-Nc for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 16:57:15 -0400 Received: from g1t0028.austin.hp.com ([15.216.28.35]:38825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFuFG-0002LY-K3 for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 16:57:14 -0400 In-Reply-To: Message from "Sebastien Vauban" of "Mon, 17 Oct 2011 22:34:36 +0200." <80botfjr1f.fsf@somewhere.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: Sebastien Vauban Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Sebastien Vauban wrote: > Hi Michael, > > Michael Hannon wrote: > > Greetings. =C2=A0The appended R code fragment executes without problem in > > an ESS buffer, but it hangs indefinitely when I try to execute it > > directly from the Org buffer via C-c C-c. > > > > The solution is to add the trailing newline in the "noteToSelf" > > variable: > > > > =C2=A0 =C2=A0 noteToSelf <- "Buy low.\nSell high.\n" > > The following code: > > #+BABEL: :cache yes :results output verbatim :exports both :tangle yes > > * This is a test > > #+begin_src R > > x <- 42 > noteToSelf <- "Buy low.\nSell high." > cat(noteToSelf) > print("All done now") > > #+end_src > > #+results[0688b4b765cdd6745f20cffe1e3b6f1b02ab9b46]: > #+begin_example > Buy low. > Sell high.[1] "All done now" > #+end_example > > *did work* for me (as you can see). > > Though, it is not exactly the same config as yours: > > - I've removed the `\240' spaces which prefixed your R code (in your postin= > g) > - I've removed the `session' argument, as `Rterm' is not (correctly?) > installed on my machine The :session argument is necessary to reproduce the behavior, I think. Nick > - I'm on Windows XP. > > Best regards, > Seb > > --=20 > Sebastien Vauban > >