0
我正在尝试查看是否可以在我的用户帐户中运行代码示例,而不是在testuser
帐户中运行。为此,我做了以下内容:脚本测试似乎没有正确的工作目录
- 我已经在我的DeployR用户帐户创建一个文件夹
example-fraud-score
(未在本教程中规定的testuser
的,在这里找到:https://msdn.microsoft.com/en-us/microsoft-r/deployr-data-scientist-getting-started) - 上传的内容
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 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"
这似乎是错误的直接tory被使用。当我尝试为我的用户寻找我的目录时,我似乎无法找到它。我的DeployR版本是8.0.0。
帮助表示赞赏。
谢谢, 马特