Dear Patrick,
I've prepared some basic instructions and a batch file for building simple
packages under Windows and have given them to several people who have
experienced problems. I've hesitated to send them to this list since they
really just duplicate information available elsewhere, and because the batch
file probably could be improved.
Since there has been a rash of Windows package-building problems recently
(probably because it's no longer possible to bypass the package-building
tools), I've appended the instructions and batch file to this message in the
hope that they prove useful. Of course, comments and suggestions for
improvement are appreciated.
Regards,
John
-------------- snip ------------
Building Simple Packages Under R for Windows
1. Links to tools and additional information are at
<http://www.murdoch-sutherland.com/Rtools/>.
2. Make sure R is *not* installed under c:\Program Files (or in any location
with spaces in the path) and that it is installed with package-building
tools. I use c:\R for the installation; I'll assume this below -- make
changes as necessary.
3. Download <http://www.murdoch-sutherland.com/Rtools/tools.zip> and unzip
e.g. to c:\Program Files\Utilities; put this directory at the beginning of
the path. (It may be necessary to copy sh.exe to c:\bin\sh.exe.)
4. Download Perl from
<http://www.activestate.com/Products/ActivePerl/Download.html> and install
it using defaults.
5. Download fptex from
<http://www.ctan.org/tex-archive/systems/win32/fptex/current/TeXSetup.exe>
and install it. Note: This requires a fast internet connection during the
installation. Don't install latex under c:\Program Files\!
6. Download HTML Help Workshop from
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/h
tml/hwmicrosofthtmlhelpdownloads.asp> and install it. Add c:\Program
Files\HTML Help Workshop to the path.
7. If you want to be able to compile old-style Windows help files (probably
not necessary) download Microsoft Help Workshop
<ftp://ftp.microsoft.com/softlib/mslfiles/hcwsetup.exe> and install it. Add
c:\Program Files\Help Workshop to the path.
8. Put my file make-package.bat in c:\R\rwxxxx\src (where xxxx is the
version, e.g., 2000). If necessary, edit this file to reflect the location
of the R installation.
9. Open a DOS (command) window. CD to R\rwxxxx\src. Make sure that the
package source files are in the directory package-name under
R\rwxxx\src\library. Enter make-package package-name. Carefully examine the
log file etc.
10. After this process is completed, you'll have both a tar.gz file with the
source package and a .zip file with the Windows binary package. Install the
latter from the "Packages -> Install package(s) from local zip files" menu
in the normal manner.
-------------- make-package.bat ------------
cd c:\R\rw2000\src\library
del %1\INDEX
del %1\data\00Index
del %1\chm\*.* /Q
..\..\bin\R CMD build --force --binary --auto-zip %1
..\..\bin\R CMD build --force %1
..\..\bin\R CMD check %1
cd %1.Rcheck
dvipdfm %1-manual
notepad 00check.log