首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >脚本测试似乎没有正确的工作目录。

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

Stack Overflow用户
提问于 2017-02-17 22:00:05
回答 1查看 32关注 0票数 0

我试图看看是否可以在用户帐户中运行代码示例,而不是在testuser帐户中运行。为此,我做了以下工作:

当我这样做的时候,我得到了一个错误:

代码语言:javascript
复制
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

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

代码语言:javascript
复制
> 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。

我们很感激你的帮助。

谢谢,马特

EN

回答 1

Stack Overflow用户

发布于 2017-02-21 18:23:03

那是远程目录(第二个框)吗?如果是的话,你为什么不打电话给setwd()

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42308132

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档