Download Section - Index of

Transcript
Appendix D: The Windows toolset
65
Our toolset contains copies of Cygwin DLLs that may conflict with other ones on your system
if both are in the path at once. The normal recommendation is to delete the older ones; however,
at one time we found our tools did not work with a newer version of the Cygwin DLLs, so it
may be safest not to have any other version of the Cygwin DLLs in your path.
D.1 LATEX
The ‘MiKTeX’ (http://www.miktex.org/) distribution of LATEX includes a suitable port of
pdftex. This can be set up to install extra packages ‘on the fly’, which is the simplest way
to use it (and the default). The ‘basic’ version of ‘MiKTeX’ almost suffices: when last tested
packages
epsf fancyvrb inconsolata listings mptopdf natbib url
needed to be added (on the fly or via the ‘MiKTeX’ Package Manager) to install R. In any
case ensure that the inconsolata package is installed—you can check with the ‘MiKTeX’ Package
Manager.
The Rtools*.exe installer does not include any version of LATEX.
It is also possible to use the TeXLive distribution from http://www.tug.org/texlive/.
Please read Section 2.3 [Making the manuals], page 4 about how to make fullrefman.pdf
and set the environment variable R_RD4PDF suitably; ensure you have the required fonts installed
or that ‘MiKTeX’ is set up to install LATEX packages on first use.
D.2 The Inno Setup installer
To make the installer package (R-devel-win.exe) we currently require the Unicode version of
Inno Setup 5.3.7 or later from http://jrsoftware.org/. This is not included in Rtools*.exe.
Copy file src/gnuwin32/MkRules.dist to src/gnuwin32/MkRules.local and edit it to set
ISDIR to the location where Inno Setup was installed.
D.3 The command line tools
This item is installed by the Rtools*.exe installer.
If you choose to install these yourself, you will need suitable versions of at least basename,
cat, cmp, comm, cp, cut, date, diff, du, echo, expr, gzip, ls, make, makeinfo, mkdir, mv,
rm, rsync, sed, sh, sort, tar, texindex, touch and uniq; we use those from the Cygwin
distribution (http://www.cygwin.com/) or compiled from the sources. You will also need zip
and unzip from the Info-ZIP project (http://www.info-zip.org/). All of these tools are in
Rtools*.exe.
Beware: ‘Native’ ports of make are not suitable (including those called ‘MinGW make’ at the
MinGW SourceForge site and mingw32-make in some MinGW-w64 distributions). There were
also problems with other versions of the Cygwin tools and DLLs. To avoid frustration, please
use our tool set, and make sure it is at the front of your path (including before the Windows
system directories). If you are using a Windows shell, type PATH at the prompt to find out.
You may need to set the environment variable CYGWIN to a value including
‘nodosfilewarning’ to suppress messages about Windows-style paths.
D.4 The MinGW-w64 toolchain
Technically you need more than just a compiler so the set of tools is referred to as a ‘toolchain’.
The preferred toolchain since R 2.14.2 is part of Rtools30.exe: this uses a beta version of
gcc 4.6.3 and version 2.0.1 of the MinGW-w64 project’s runtime.