From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: minor bug in babel with silent output and remote R session Date: Fri, 12 Apr 2013 15:57:11 -0600 Message-ID: <87vc7re5kw.fsf@gmail.com> References: <87ppy6sq69.fsf@bzg.ath.cx> <87zjx6ed7d.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQmdw-00012H-5a for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 18:40:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQmdu-0007xS-FN for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 18:40:28 -0400 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: Bastien Cc: emacs-orgmode@gnu.org, Thomas Alexander Gerds Bastien writes: > Hi Thomas, > > thanks for the follow-up. > > Thomas Alexander Gerds writes: > >> I think that I can describe the problem a bit better now. It is not >> related to the silent option but occurs whenever ":results value". >> >> Emacs freezes due to the following line in >> org-babel-comint-eval-invisibly-and-wait-for-file >> >> (while (not (file-exists-p file)) (sit-for (or period 0.25))) >> >> it seems that R cannot transfer the file and hence this is an endless >> loop. > > I'm not knowledgeable enough in this area to provide a fix, maybe > someone else will. > Could this be a problem with whatever tool (I'm assuming ESS) you are using to maintain the R session and generate the R file? Perhaps babel needs to modify the R code used to create the file (held in the `org-babel-R-write-object-command' variable). Could you take a shot at providing another version of this variable? I don't really use R myself. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte