emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: Babel R source blocks problem
Date: Sat, 28 Jan 2017 12:25:28 -0800	[thread overview]
Message-ID: <alpine.OSX.2.20.1701281203150.1494@charles-berrys-macbook.local> (raw)
In-Reply-To: <m2efznx9tk.fsf@tsdye.com>

On Sat, 28 Jan 2017, Thomas S. Dye wrote:

> Aloha all,
>
> I've run into a problem running R code blocks in a new Spacemacs setup.
> Results are not written to the Org mode buffer.
>
> In *Messages* I see this the first time I evaluate the R source code
> block:
> Error during redisplay: (jit-lock-function 804) signaled (search-failed
> "^> ")
>
> If I run R in a :session, then I see that the source code block is
> executing correctly.
>
> Other languages don't seem to have a problem writing results to the Org
> mode buffer.
>
> Any ideas how I might debug this?

I hope somebody recognizes that message. If not, here are som suggestions:


#+NAME: alpha
#+BEGIN_SRC emacs-lisp
"abc"
#+END_SRC

produces

#+RESULTS: alpha
: abc

when you run `org-babel-execute-src-block'. Does changing "emacs-lisp"
to "R" and running again erase the result or fail to insert it if
you first run `org-babel-remove-result'?

You have already checked that C-c C-v C-i for both versions yields
identical results, right?

If so, I'd instrument `org-babel-execute-src-block', execute and then
type 'h' just before the `(org-babel-insert-result ... ' --- a couple
of lines from the bottom --- once you enter edebug. Then `e' and
`results' to see that it is what you suppose it should be. Then step
thru the next few lines to insert the result. Then check the buffer to
see what happened. If no result was inserted, then I'd instrument
`org-babel-insert-result' and work from there.

HTH,

Chuck

p.s. You are not trying to export this and depending on the exporter
to run babel, right? Because there is another trick lying in wait...

  reply	other threads:[~2017-01-28 20:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-28 19:29 Babel R source blocks problem Thomas S. Dye
2017-01-28 20:25 ` Charles C. Berry [this message]
2017-01-28 21:31   ` Thomas S. Dye
2017-01-28 22:18     ` Charles C. Berry
2017-01-29  0:21       ` Thomas S. Dye
2017-02-11  5:29       ` Thomas S. Dye
2017-02-11 20:02         ` Charles C. Berry
2017-03-13 22:37           ` Thomas S. Dye
2017-03-20 18:19             ` Charles C. Berry

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=alpine.OSX.2.20.1701281203150.1494@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /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).