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: Wed, 13 Mar 2013 09:11:06 -0600 Message-ID: <87obencp2t.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFnKk-0007Uv-10 for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 11:11:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFnKd-0007FN-Px for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 11:11:13 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:60336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFnKd-0007FG-Jp for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 11:11:07 -0400 Received: by mail-pb0-f42.google.com with SMTP id xb4so1114800pbc.29 for ; Wed, 13 Mar 2013 08:11:06 -0700 (PDT) In-Reply-To: (Thomas Alexander Gerds's message of "Wed, 13 Mar 2013 08:49:15 +0100") 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: Thomas Alexander Gerds Cc: emacs-orgmode@gnu.org Thomas Alexander Gerds writes: > Using the silent option together with a remote R session block (started > via ssh.el and ess-remote), like this: > > #+BEGIN_SRC R :results silent :exports results :session *ssh gauss* :cache yes > a=1 > 1 > #+END_SRC > > produces: > > ,---- > | > > > [1] 1 > | > Warning message: > | In file.rename(tfile, transfer.file) : > | cannot rename file '/tmp/RtmpQwlyCf/file7c9b78867f6c' to > | /tmp/babel-4977UIT/R-4977ucf', reason 'No such file or directory' > | > > `---- > > and emacs freezes. No big deal because C-g gets me out of it, but > slightly annoying. > > with `:results output' instead of `:results: silent' everything works > fine. > Are you sure this problem is related to the ":results silent" header argument? I would expect this problem to arise *any* time results are requested from a remove R session. This is because R and Emacs use the file system to hand results back and forth, and when the R session refers to a remote file system, this communication fails. One possible solution would be to use the :dir header argument to specify to the code block the machine on which the execution is taking place. Best, > > > best, > Thomas > -- Eric Schulte http://cs.unm.edu/~eschulte