[R] packages on windows

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu May 16 18:08:06 CEST 2002


Niels Waller wrote:
> 
> I am trying to write my first R package.  The file 'Creating R packages'
> instructs me to create a 'man' subdirectory for the help files (with an Rd
> extension). However when I look at other libraries I do not find a man
> subdirectory (I find html dirs).  Also I am told to include a keyword from
> the KEYWORDS.db.  However this file is not on my system?  Any suggestions?
> I am working with R 1.5 on windows NT

It is in the ...\doc subdirectory (at least, if you have installed the
required sources).
If you have not installed R from source but from the Setup-Wizard, you
have to select the src files explicitly.

You don't have the man path in the installed packages, because those are
installed binary versions of the packages. The Rd files are already
compiled to html, chm or whatever help files.
To build a package, you only have to put the sources together (.Rd files
for manuals, .R files for the functions, .c / .f files for C/Fortran
code etc.). After a package is build (with Rcmd BUILD ...) it can be
installed (Rcmd INSTALL ....). 
You have to collect the appropriate tools to build and install (source)
packages.

This and more is described more detailed in 
a) the manual "Writing R extensions" and 
b) more Windows specific in the files readme and readme.packages in
...\src\gnuwin32.

It is highly recommended to read these docs...

Maybe you want to serach through the mailing list archives to look at
some other mails regarding package building/installation on windows...

For an example how a typical source package looks like, just look at a
small one from CRAN/src/contrib.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list