【问题标题】:Rscript and IncredibuildRscript 和 Incredibuild
【发布时间】:2011-04-20 19:55:35
【问题描述】:

我在“functions.txt”文件中有一个简单的函数 f1(paramter)。

我写了一个批处理文件test.bat如下

FOR /L %%G in (-100,1,100) do xgSubmit.exe /group=tt1Test /command  Rscript.exe -e 
"source('functions.txt');f1(%%G)" > "Out.%%G.txt"

在我使用的 windows 命令提示符下

xgConsole.exe test.bat /openmonitor /AvoidLocal=ON

我想做的是使用 incredibuild 在不同的机器上计算函数 f1()。

我观察到的是在本地运行的函数在文件中返回一个值 Out.%%G.txt 但远程运行的函数失败并出现以下错误

Error in structure(.Internal(Sys.getenv(as.character(x), as.character(unset))),  : 
 unsupported conversion to 'UCS-2LE' from codepage 1252
Calls: local ... eval -> eval -> as.vector -> Sys.getenv -> structure
Execution halted.

远程机器没有安装 R 程序。

我做对了吗? 即使远程计算机上没有安装 R 程序,incredibuild 和 Rscipt 是否也能正常工作?

如果能提供详细的答案将是非常友好的。

【问题讨论】:

    标签: rscript


    【解决方案1】:

    这似乎是远程机器中的 Unicode 问题。 自提交此问题以来,已修复了许多 Unicode 问题。 我假设您的错误已在最新版本的 IncrediBuild 中修复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-27
      • 2011-03-13
      • 2017-12-19
      • 2018-12-25
      • 2012-11-11
      • 2021-10-27
      • 1970-01-01
      相关资源
      最近更新 更多