From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Trouble evaluating R source code blocks with C-c C-c Date: Sun, 29 May 2016 10:58:37 -0700 Message-ID: References: <2BE21056-50D3-49CE-8B0D-5467D182B7B5@agrarianresearch.org> <2E8B017B-F4AB-454D-81A1-E61F55F4F958@agrarianresearch.org> <5F862231-C04A-4BF6-8A2A-2377AF000374@agrarianresearch.org> 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]:54747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b74z7-00067H-Cx for emacs-orgmode@gnu.org; Sun, 29 May 2016 13:58:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b74z3-0008SZ-5r for emacs-orgmode@gnu.org; Sun, 29 May 2016 13:58:44 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:22569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b74z2-0008SM-To for emacs-orgmode@gnu.org; Sun, 29 May 2016 13:58:41 -0400 In-Reply-To: <5F862231-C04A-4BF6-8A2A-2377AF000374@agrarianresearch.org> 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: Vikas Rawal Cc: William Denton , org-mode mailing list On Sun, 29 May 2016, Vikas Rawal wrote: > And this time it has this additional line: run-hook-with-args-until-success(org-babel-execute-safely-maybe) Actually, I saw that line in your previous posting. But this may help: > > ------------------ > > sit-for(0.25) > org-babel-comint-eval-invisibly-and-wait-for-file("type2" [rest deleted] `sit-for' is in this loop: `(while (not (file-exists-p file)) (sit-for (or period 0.25)))' which suggests that the file to which the results should be written is not being created or there is an issue with `sit-for'. Does anyone know why `sit-for' is used here rather than `sleep-for'? I ask because I see that `sit-for' because it seems to me that `sleep-for' would be enough and `sit-for' has inline comments that suggest some unresolved issues. Vikas, can you edit the `sit-for' to `sleep-for' in `org-babel-comint-eval-invisibly-and-wait-for-file' and `eval-defun' the result and see if that has any effect? Chuck