【问题标题】:Script test seems to not have correct working directory脚本测试似乎没有正确的工作目录
【发布时间】:2017-02-17 22:00:05
【问题描述】:

我正在尝试查看是否可以在我的用户帐户而不是testuser 帐户中运行代码示例。为此,我做了以下工作:

当我这样做时,我得到了错误:

Connecting to 172.31.232.190:8000
3:53:26 PM Stream Connect matthew.pettis connection established, waiting for an event...
> require(deployrUtils)
> deployrInput("{\"name\": \"bal\", \"render\":\"integer\", \"default\": 5000, \"min\" : 0, \"max\": 25000 }")
> deployrInput("{\"name\": \"trans\", \"render\":\"integer\", \"default\": 12, \"min\" : 0, \"max\": 100 }")
> deployrInput("{\"name\": \"credit\", \"render\":\"integer\", \"default\": 8, \"min\" : 0, \"max\": 75 }")
> if (!exists("fraudModel")) {
+ load("fraudModel.rData")
Console Error cannot open the connection
API Error cannot open the connection

我尝试按照此处的帖子进行故障排除,但找不到我的目录所在的位置:deployR cannot open the connection

当我使用脚本查找工作目录(和列表内容)时,我看到:

> require(deployrUtils)
> getwd()
[1] "C:/PROGRA~1/MICROS~2/DEPLOY~1.0/rserve/workdir/conn2209460"
> list.files(getwd())
[1] "DeployREngineSource.r" "unnamedplot001.png"

这似乎是使用错误的目录。当我试图为我的用户寻找我的目录时,我似乎找不到它。我的 DeployR 版本是 8.0.0。

感谢您的帮助。

谢谢, 马特

【问题讨论】:

    标签: microsoft-r deployr


    【解决方案1】:

    那是远程目录(第二个框)吗? 如果是这样,你为什么不打电话给setwd()

    【讨论】:

      猜你喜欢
      • 2017-09-08
      • 2014-01-14
      • 1970-01-01
      • 2013-11-25
      • 2017-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多