Skip to content
Prev 6043 / 12125 Next

[R-pkg-devel] Anyone Know How To Setup Wine for Windows Testing?

Getting R to run well on Wine would be really neat.  Here are some
additional comments that might encourage someone to move this forward.

On Ubuntu 18.04, you can install and run R 3.6.0 on Wine as:

curl -O https://cloud.r-project.org/bin/windows/base/old/3.6.0/R-3.6.0-win.exe
wine R-3.6.0-win.exe /SILENT
wine start "%ProgramW6432%/R/R-3.6.0/bin/i386/R"

However, for me, never versions of R (e.g. R 3.6.1) fail to install
with an error "This program does not support the version of Windows
your computer is running."  This is with the current stable version of
Wine is 5.0.2 (August 2020) available from https://www.winehq.org/.
(If you struggle to install Wine (>= 4.5) on Ubuntu 18.04, see also
https://askubuntu.com/questions/1145473/how-do-i-install-libfaudio0).
I observed the same with Wine 3.0.


Some more comments: Back in 2016 I was looking into running R on Wine
via futures.  This could make it possible to access features in
Windows-only R packages from R sessions running Linux.  I only spent
so much time on it before concluding it wasn't stable and not worth my
time to investigate further.  For instance, I managed to launch a Wine
background worker as in:

rscript <- c("wine", "start", "/Unix",
normalizePath("~/.wine/drive_c/Program\
Files/R/R-3.5.1/bin/i386/Rscript.exe", mustWork = TRUE))
cl <- future::makeClusterPSOCK(1L, rscript=rscript, verbose=TRUE)

but only when running 32-bit Wine.  On 64-bit Wine is stalled.

/Henrik
On Mon, Sep 21, 2020 at 7:16 AM Tomas Kalibera <tomas.kalibera at gmail.com> wrote: