From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Babel R source blocks problem Date: Sat, 28 Jan 2017 12:25:28 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXZZ2-0000vI-4G for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 15:25:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXZYy-0006fy-Nj for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 15:25:35 -0500 Received: from iport-bcv2-out.ucsd.edu ([132.239.0.73]:46530) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXZYx-0006fc-P5 for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 15:25:32 -0500 In-Reply-To: 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" To: "Thomas S. Dye" Cc: org mode 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...