[R] library help files

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon Nov 25 20:26:06 CET 2002


You need to INSTALL your package (as `libraries' are really called in R).
That will automatically set up all the documentation files you need.

The help directory does not contain .Rd files: it contains text files
translated by Rdconv.

On Mon, 25 Nov 2002 huan.huang at bnpparibas.com wrote:

>
> Dear all,
>
> I am writing my small working library. I have done most of the work and it
> seems working well in R. The library name appears in the package list when
> I type help.start().
>
> Now my problem is about the help files. I have done help file in Rd format
> and translated it to HTML format (I have a subdirectory (named html) with
> html file in it and a subdirectory (named help) with .Rd files in it) .
> What I want are:
>
> 1. I can use those help files when i open the help windows with help.start
> ();;
> 2. When I type help(function name) in R command window, the help file will
> jump out on the screen.
>
> I think there must be some introduction somewhere. I couldn't find it in
> 'Writing R Extension'. Could anybody point out somewhere or some wayI can
> implement the above two things?

Writing R Extensions starts

Creating R packages

Packages provide a mechanism for loading optional code and attached
documentation as needed. The R distribution provides several packages,
such as eda, mva, and stepfun.

In the following, we assume that you know the library() command, including
its lib.loc argument, and we also assume basic knowledge of R CMD INSTALL.
Otherwise, please look at R's help pages

?library
?INSTALL

before reading on.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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