2017-02-17 68 views
0

我正在尝试查看是否可以在我的用户帐户中运行代码示例,而不是在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" 

这似乎是错误的直接tory被使用。当我尝试为我的用户寻找我的目录时,我似乎无法找到它。我的DeployR版本是8.0.0。

帮助表示赞赏。

谢谢, 马特

回答

0

是远程目录(第二个框)? 如果是这样,你为什么不叫setwd()