【发布时间】: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