vignettes/parallelly-22-wine-workers.md
parallelly-22-wine-workers.md
This vignette shows how to set up parallel workers running on MS Windows via Wine (https://www.winehq.org/) on Linux and macOS.
This example shows how to launch one worker running in Wine for Linux on the local machine.
cl <- makeClusterPSOCK(
1L,
rscript = c(
## Silence Wine warnings
"WINEDEBUG=fixme-all",
## Don't pass LC_* and R_LIBS* environments from host to Wine
sprintf("%s=", grep("^(LC_|R_LIBS)", names(Sys.getenv()), value = TRUE)),
"wine",
"C:/Program Files/R/R-4.4.2/bin/x64/Rscript.exe"
)
)
print(cl)
#> Socket cluster with 1 nodes where 1 node is on host 'localhost'
#> (R version 4.4.2 (2024-10-31 ucrt), platform x86_64-w64-mingw32)