我在“functions.txt”文件中有一个简单的函数 f1(参数)。
我写了一个批处理文件 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 是否应该能够工作?
提供详细的答案将是非常友好的。