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 thank you Niels Waller -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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).These are *installed* packages. But you are writing a *source* package!>From the `man' directory the html or pdf-versions of the help-files willbe compiled.> Also I am told to include a keyword from > the KEYWORDS.db. However this file is not on my system? Any suggestions?You can also say help.start() and then klick on "Search Engine & Keywords", where you will find on overview. Z> I am working with R 1.5 on windows NT > > thank you > > Niels Waller > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 NTIt 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hola! You need the difference between source and binary packages. man is in the source package , html etc in binary packages. The file KEYWORDS is not in the binary distribution, at least on windows. You need to get the source distribution and install it. (It would be a good idea to incorporate KEYWORDS in binary distributions, as many will need the source distribution only to get this file) Kjetil Halvorsen 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 > > thank you > > Niels Waller > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 16 May 2002, kjetil halvorsen wrote:> Hola! > > You need the difference between source and binary packages. man is in > the source > package , html etc in binary packages. The file KEYWORDS is not in the > binary distribution, at least on windows. You need to get the source > distribution and install it. (It would be a good idea to incorporate > KEYWORDS in binary distributions, as many will need the source > distribution only to get this file)It *is* in the binary distribution, in the doc directory, provided you check the option in SetupR.exe for the files to install source packages, and it is also in rw1050sp.zip. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._