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 yes :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


This was a near trivial byte-compiler issue.

`tramp-flush-directory-property' is in tramp-cache.el not tramp.el.

I'll push it tomorrow.

Chuck
From b108391e0ba56e0a272aae1d1fb2eed4f1c4a03c Mon Sep 17 00:00:00 2001
From: Charles Berry <ccbe...@ucsd.edu>
Date: Fri, 22 Apr 2016 21:04:16 -0700
Subject: [PATCH] ob-comint.el: Fix byte-compiler/declare-function bug

* ob-comint.el: (tramp-flush-directory-property declaration): The
  file is now "tramp-cache".

Bug reported by

From: Vikas Rawal
Subject: Using tramp to run R source code blocks on remote server
Archived-At: <http://permalink.gmane.org/gmane.emacs.orgmode/106557>
---
 lisp/ob-comint.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-comint.el b/lisp/ob-comint.el
index a5a7888..833d492 100644
--- a/lisp/ob-comint.el
+++ b/lisp/ob-comint.el
@@ -35,7 +35,7 @@
 (require 'comint)
 (eval-when-compile (require 'cl))
 (declare-function with-parsed-tramp-file-name "tramp" (filename var &rest 
body))
-(declare-function tramp-flush-directory-property "tramp" (vec directory))
+(declare-function tramp-flush-directory-property "tramp-cache" (vec directory))
 
 (defun org-babel-comint-buffer-livep (buffer)
   "Check if BUFFER is a comint buffer with a live process."
-- 
2.6.4 (Apple Git-63)

Reply via email to