[R] Build R Packages (man)

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jan 10 08:26:45 CET 2002


Ko-Kang Kevin Wang wrote:
> 
> Hi there,
> 
> I'm trying to get the manual for an R package (that I'm creating) to
> work...
> 
> Firstly, I created the *.Rd files (by following the instructions in
> "Writing R Extensions" and using prompt() in R, then edit the *.Rd
> files.  I then copy them into the "pkg/man" directory as suggested by the
> manual.  However when I load the library (successfully) in R, I cannot
> find the manuals for my data sets.  For example, if I type:
>    library(myLib)
>    data(foo)
> they work fine.  And I can play with the data set foo.  However then I
> type:
>   ?foo
> it cannot find the documentation which I created and placed in the /man
> directory.

Are you sure you have *installed* the package (R INSTALL package)?
Help files will be created automatically.


> Secondly, I tried to convert the Rd files into html using R CMD Rdconv,
> but I cannot quite follow the manual "R CMD Rdconv --help".  I tried:
>   R CMD Rdconv --output=html man > html
> and it returns:
>   Unknown type: options are txt, html, latex, Sd, example
> I also tried several other ways but can't seem to get R CMD Rdconv to
> work.


See  "R CMD Rdconv --help"  and try:
  R CMD Rdconv -t=html -output=filename.html filename.Rd

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