/usr/lib/R/site-library/Rmpi/Rslaves64.bat is in r-cran-rmpi 0.5-9-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | @echo off
set Rscript=%1%
set R_HOME=%2%
set WDrive=%3%
set WDir=%4%
set Master=%5%
set MapDrive=%6%
set RemotePath=%7%
if %MapDrive%==FALSE goto last
set FirstOne=FALSE
if exist %WDrive%:\NUL goto next
set FirstOne=TRUE
net use %WDrive%: %RemotePath%
if not errorlevel 0 set FirstOne=FALSE
:next
cd /D %WDir%
%R_HOME%\bin\x64\Rterm.exe --no-init-file --no-save --slave < %Rscript%
if %FirstOne%==FALSE goto end
net use /delete %WDrive%:
goto:eof
:last
if %Master% == %COMPUTERNAME% (
%R_HOME%\bin\x64\Rterm.exe --no-init-file --no-save --slave < %Rscript%
goto:eof
)
cd /D %TMP%
%R_HOME%\bin\x64\Rterm.exe --no-init-file --no-save --slave < %Rscript%
:end
|