emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Missing newline in R code causes Org-Mode eval to hang
Date: Mon, 17 Oct 2011 22:34:36 +0200	[thread overview]
Message-ID: <80botfjr1f.fsf@somewhere.org> (raw)
In-Reply-To: 1318881451.32666.YahooMailNeo@web161920.mail.bf1.yahoo.com

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

  parent reply	other threads:[~2011-10-17 20:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 19:57 Missing newline in R code causes Org-Mode eval to hang Michael Hannon
2011-10-17 20:30 ` Eric Schulte
2011-10-18 16:03   ` Michael Hannon
2011-10-17 20:34 ` Sebastien Vauban [this message]
2011-10-17 20:57   ` Nick Dokos

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=80botfjr1f.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /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).