繁体   English   中英

脚本测试似乎没有正确的工作目录

[英]Script test seems to not have correct working directory

我正在尝试查看是否可以在我的用户帐户而不是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无法打开连接

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

> 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。

感谢帮助。

谢谢,马特

那是远程目录(第二个方框)吗? 如果是这样,为什么不调用setwd()呢?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM