Hi, 1- How is it possible to use the name of a generic function as the name of a function which is not related to the generic function? For example, if I define predict.my.function, R will relate it to predict function and I'll get the following warning when I run R CMD check * checking S3 generic/method consistency ... WARNING predict: ? function(object, ...) predict.my.function ... 2- I get the following warning although I have used "require" of the related library in the function and imports in DESCRIPTION file no visible global function definition for coxph 3- Although I use the alias of an Rd file of my package in cross references: \seealso{ See Also as \code{\link{object.name}} } where object.name is the name of an Rd file without Rd, I get the following warning Missing link(s) in documentation object './man/object.name.Rd': object.name I don't think that I will have use the name of my package. Look forward to your reply, Carol
On 17.09.2010 14:25, carol white wrote:> Hi, > 1- > How is it possible to use the name of a generic function as > the name of a function which is not related to the generic > function?This is not possible, choose a different name or make it a predict() methods. > For example, if I define predict.my.function, R> will relate it to predict function and I'll get the following > warning when I run R CMD check > > * checking S3 generic/method consistency ... WARNING > predict: > function(object, ...) > predict.my.function ...> 2- I get the following warning although I have used "require" of the related library in the function and imports in DESCRIPTION file > > no visible global function definition for coxphIf you do not import it into your namespace but make it available via require() instead, you need to declare it as Depends.> 3- Although I use the alias of an Rd file of my package in cross references: > > \seealso{ > See Also as \code{\link{object.name}} > } > where object.name is the name of an Rd file without RdWhat is "an Rd file without Rd"?> , I get the following warning > > Missing link(s) in documentation object './man/object.name.Rd': > object.nameThis means you cited the help page itself? I think you need to tell us the alias(es) you used as well as the purpose of this one.> > I don't think that I will have use the name of my package.Why is this related? Best wishes, Uwe Ligges> > Look forward to your reply, > > Carol > > > > > > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
On Wed, 22 Sep 2010, carol white wrote:> Thank you very much Uwe. It works now. > > I have a question about pdf formating in pdf manual file: > > How to format the long lines which go to the margin? For ex, this > happens in Usage field if a function has many arguments. Also, it > happens in examples or Arugment sections when the lines are long.Correct the sources by re-formatting over-long lines yourself. (This should only happen in verbatim-like sections, hence unlikely to happen in \argument{}.) One of the things we suggest when checking a package is to read through the PDF manual, and this is one of the problems to look out for. (Note that it does depend on the fonts used for the PDF, but the default Courier for monospaced text is somewhat wide.) -- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 23.09.2010 18:16, carol white wrote:> I used the 2.10.0 versionMy apologies, I actually meant R >= 2.10.0 and hence it is not a surprise. Best, Uwe Ligges> --- On Thu, 9/23/10, Uwe Ligges<ligges at statistik.tu-dortmund.de> wrote: > >> From: Uwe Ligges<ligges at statistik.tu-dortmund.de> >> Subject: Re: [Rd] some problems reported in 00check.log >> To: "carol white"<wht_crl at yahoo.com> >> Cc: "Prof Brian Ripley"<ripley at stats.ox.ac.uk>, r-devel at r-project.org >> Date: Thursday, September 23, 2010, 4:57 AM > >> >> If this is R> 2.10.0, it is expected. Static html files >> are not >> generated upon installation any more. Contents is generated >> dynamically >> upon request now. >> > > >