Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google


Install MS/Windows R Under GNU/Linux

Installing the MS/Windows version of R on a GNU/Linux machine seems like a very odd thing to do, but there are times when you may need to share a high quality graphics file in a format that your MS/Windows limited colleagues can use. Only the MS/Windows version of R can generate MS/Windows Metafiles (with filename extension wmf and emf). As with many things in GNU/Linux, which is all about freedom, you can install the MS/Windows version of R using the GNU/Linux package called Wine. The steps are (replace http://cran.au.r-project.org/ with an archive near you--see http://cran.r-project.org/mirrors):



[language=csh,basicstyle=\ttfamily\tiny]
$ wget http://cran.au.r-project.org/bin/windows/base/R-2.4.1-win32.exe
$ wine R-2.3.1-win32.exe
$ wine ~/.wine/fake_windows/Program\ Files/R/2.4.1/bin/Rgui.exe

The resulting window will be running the MS/Windows application on your GNU/Linux desktop.

Inside the Rgui you can create a MS/Windows Metafile image in this way:

> win.metafile("sample.emf")
> plot(iris$Petal.Length, iris$Petal.Width)
> dev.off()



Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010