emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Missing newline in R code causes Org-Mode eval to hang


From: Sebastien Vauban
Subject: Re: [O] Missing newline in R code causes Org-Mode eval to hang
Date: Mon, 17 Oct 2011 22:34:36 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (windows-nt)

Hi Michael,

Michael Hannon wrote:
> Greetings.  The 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:
>
>     noteToSelf <- "Buy low.\nSell high.\n"

The following code:

--8<---------------cut here---------------start------------->8---
#+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
--8<---------------cut here---------------end--------------->8---

*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 posting)
- I've removed the `session' argument, as `Rterm' is not (correctly?)
  installed on my machine
- I'm on Windows XP.

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

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