我试图看看是否可以在用户帐户中运行代码示例,而不是在testuser帐户中运行。为此,我做了以下工作:
example-fraud-score用户帐户下创建了一个文件夹DeployR (不是教程中列出的testuser,在这里找到:https://msdn.microsoft.com/en-us/microsoft-r/deployr-data-scientist-getting-started )。analytics/的内容从教程上传到DeployR服务器上的example-fraud-score目录。ccFraudScore.R,contents:https://github.com/Microsoft/js-example-fraud-score-basics/blob/master/analytics/ccFraudScore.R,在单击DeployR中的文件名后,使用右边的'Test‘选项卡。当我这样做的时候,我得到了一个错误:
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。
我们很感激你的帮助。
谢谢,马特
发布于 2017-02-21 18:23:03
那是远程目录(第二个框)吗?如果是的话,你为什么不打电话给setwd()
https://stackoverflow.com/questions/42308132
复制相似问题