From murdoch.duncan at gmail.com  Mon Oct  4 14:08:40 2010
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Mon, 04 Oct 2010 08:08:40 -0400
Subject: [Rd] S4 class help pages [Sec=Unclassified]
In-Reply-To: <42C7503E0B99F248B06BC65E7D2B4E020187DD7256F1@EX2K7-CCR.AAD.GOV.AU>
References: <42C7503E0B99F248B06BC65E7D2B4E020187DD7256F1@EX2K7-CCR.AAD.GOV.AU>
Message-ID: <4CA9C3C8.2090208@gmail.com>

  On 04/10/2010 12:14 AM, Troy Robertson wrote:
> Hi,
>
> I am working on producing an R package containing mostly S4 classes and methods.
> I have generated and filled out all the necessary .Rd files but find that once installed I am unable to access help pages for the classes using the ?package::classname-class syntax that is suggested when using the ?? apropos search.  This lists my package classes and the class help pages.  Instead, the "Arithmetic Operators" help page is always loaded.  I can load the pages I want via links like \linkS4class{classname} in my package help page.
>
> I have played with a couple of other packages and see the same problem.  Is there a different syntax to access these S4 class help pages rather than ?package::classname-class?

The problem is the parsing:  that is parsed as `?`(stats4::mle - class), 
i.e. there's a subtraction there, not a name with a hyphen in it.  So 
you're seeing help on subtraction.

You can get what you want with class?stats4::mle.

I'll see if I can fix the advice from ??.

Duncan Murdoch

> Thanks
>
> Troy
>
>
> ___________________________________________________________________________
>
>      Australian Antarctic Division - Commonwealth of Australia
> IMPORTANT: This transmission is intended for the addressee only. If you are not the
> intended recipient, you are notified that use or dissemination of this communication is
> strictly prohibited by Commonwealth law. If you have received this transmission in error,
> please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
> DELETE the message.
>          Visit our web site at http://www.antarctica.gov.au/
> ___________________________________________________________________________
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] S4 class help pages [Sec=Unclassified]
Duncan Murdoch