From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: Using tramp to run R source code blocks on remote server Date: Thu, 21 Apr 2016 22:20:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atMy0-0008Ox-Ut for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 18:20:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atMxx-0001Kk-OK for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 18:20:56 -0400 Received: from smtp02.stowers.org ([40.141.174.62]:37595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atMxx-0001Kg-Hx for emacs-orgmode@gnu.org; Thu, 21 Apr 2016 18:20:53 -0400 In-Reply-To: Content-Language: en-US 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: "'Charles C. Berry'" , 'Vikas Rawal' Cc: 'org-mode mailing list' I believe some of the inter-process communication magic depends upon i/o th= rough a file that exists in /tmp on the remote host If the remote server shares a file system with localhost (does it?), you co= uld contrive for that temp file to live there (~/.emacs.d/ESS.IPC.HACK) ins= tead. I've been stung by similar in the past. What version of ESS and org are you using? (meta-x org-version and meta-x e= ss-version) - this has been a bit of a moving target. I've most recently h= ad tramp/ess/org work FINE. That is when I am editing a file on a remote h= ost via tramp. The R process starts up on the remote host (as does a shell= for "#+SRC sh" blocks). This _should_ work for you.... ~Malcolm > -----Original Message----- > From: Emacs-orgmode [mailto:emacs-orgmode- > bounces+mec=3Dstowers.org@gnu.org] On Behalf Of Charles C. Berry > Sent: Thursday, April 21, 2016 5:05 PM > To: Vikas Rawal > Cc: org-mode mailing list > Subject: Re: [O] Using tramp to run R source code blocks on remote serve= r >=20 > On Thu, 21 Apr 2016, Charles C. Berry wrote: >=20 > > On Thu, 21 Apr 2016, Charles C. Berry wrote: > > > >> On Thu, 21 Apr 2016, Vikas Rawal wrote: > >> > >>> I am trying to run R source code blocks on a remote server (defined = in my > >>> ~/.ssh/config as cesp). > >>> > >>> I am facing several problems. > >>> > >>> 1. The following sample block, when used with ":results value" does= not > >>> give any results. > >>> > >>> #+NAME: level1 > >>> #+begin_src R :results value :exports results :colnames yes :hline y= es > >>> :session cesp :dir /cesp:/home/vikas/ > >>> c(1:5) > >>> #+end_src > >>> > >>> I get the following message: > >>> > >>> tramp-flush-directory-property: Wrong type argument: arrayp, nil > >>> > >> > >> I think this is an issue with having different version of ESS on your= local > >> and remote systems. > >> > > > > OOPS! > > > > The `different versions' issue affected my setup. But after correcting= it, I > > still get the error you cited above. > > > > Not sure exactly where the fault lies. > > >=20 >=20 > Maybe in `org-babel-comint-eval-invisibly-and-wait-for-file', but I am n= ot > sure what/how. >=20 > I tried to instrument the function (C-u C-M-x on the function source) an= d > run it. And it ran without error when I stepped thru it. Then I removed > instrumentation with C-M-x and reran - again no error. >=20 > I tried removing the *.elc and restarting emacs, but that seems to make = no > difference - the error is still there till I instrument the code. >=20 > Until this is sorted out, you might try the instrument/uninstrument gamb= it > as a workaround. >=20 > HTH, >=20 > Chuck >=20