[英]Script test seems to not have correct working directory
我正在尝试查看是否可以在我的用户帐户而不是testuser
帐户中运行代码示例。 为此,我做了以下工作:
testuser
下创建了一个example-fraud-score
文件夹,位于以下位置: https ://msdn.microsoft.com/zh-cn/microsoft-r/deployr-data -科学家入门 ) analytics/
的内容到DeployR服务器上的example-fraud-score
目录。 ccFraudScore.R
,其内容在这里: https : //github.com/Microsoft/js-example-fraud-score-basics/blob/master/analytics/ccFraudScore.R使用右侧的“测试”选项卡在DeployR中单击文件名后。 当我这样做时,我得到了错误:
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.