【发布时间】:2014-10-17 10:22:56
【问题描述】:
我在 Debian 中使用带有 emacs 和 ess 的 R。我将通过笔记本电脑中的 R 脚本在远程机器上运行 R 进程。因此,从 emacs 中加载我的 R 脚本,我 ssh 到远程机器并启动一个新的 R 会话,而不是使用 M-x ess-remote 将远程 R 进程连接到我的本地 R 脚本。一切正常,直到我尝试从我的笔记本电脑(本地机器)加载一些功能并将其发送到远程 R。每当我尝试这样做时,我都会收到以下错误:
source('myFunction.R')
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'myFunction.R': No such file or directory
如果我切换到 R 控制台并且我 getwd() 控制台说我在远程机器的主目录中。
我按照 ess wbb-site here 的指示进行操作。我哪里错了?
【问题讨论】: