next up previous contents index
Next: Documenting R Functions Up: Build R Package Previous: Build R Package   Contents   Index

Preparation

It is recommended that you have all the software listed in Chapter 4.1 installed first. Then set your PATH variable as described in Chapter 4.2. You must have a compiled working version of R installed, and have $R_HOME\bin placed in your PATH. Now create a folder (for reference purpose, let's call it foo) that will contain your new package. The folder shall contain several sub-folders5.1. They are:
R
help
html
latex
man
Although not compulsory, it is strongly recommended that you set your working directory to be the man folder in foo. To do this, right click on the Rgui.exe icon (or its shortcut on the desktop if you have one), choose Properties, then put the absolute path of the man folder in the working directory text field. This will ensure you can use:
> prompt(file)
to output a template of the Rd file into the man folder directory.

Ko-Kang Wang 2002-10-10