[R] compiled help pages

Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com
Sun May 3 05:11:48 CEST 2009


Thank you, Duncan!  You are right-as-rain:  I forgot to change the aliases.
A single change from \alias{STUFF} to \alias{newSTUFF} in the
newSTUFF-package.Rd file did the trick.

Thanks!

Charles Annis, P.E.

Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Duncan Murdoch
Sent: Saturday, May 02, 2009 7:44 PM
To: Charles.Annis at statisticalengineering.com
Cc: r-help at r-project.org
Subject: Re: [R] compiled help pages

On 02/05/2009 6:37 PM, Charles Annis, P.E. wrote:
> Greetings:
> 
>  
> 
> This should be easy but it isn't.
> 
>  
> 
> I have a home-brew package that works fine, with compiled html help pages,
> all 150 of them.  I want to make a similar package but not from scratch
> since only a half-dozen routines are changed.  So I created a new
directory,
> copied the old package into it and changed the name to newSTUFF.  I
changed
> the names of all help pages too, as weill as their aliases, and of course
I
> changed the DESCRIPTION. Then I executed R CMD build --binary newSTUFF.
The
> package was built, including the compiled help pages, and automatically
> zipped.  I install the package, and then load it and it runs perfectly -
> EXCEPT for the "help(newSTUFF)" command, which gives this error message:
> 
> No documentation for ' newSTUFF ' in specified packages and libraries:
> 
> you could try '?? newSTUFF '
> 
>  
> 
> But when I look at the contents of the ZIP file that R has made, it says
the
> newSTUFF compiled help pages are there:
> 
> newSTUFF/
> 
> newSTUFF/chtml/
> 
> newSTUFF/chtml/newSTUFF.chm

? and ?? don't look at filenames, they look at the aliases within the 
file.  I'm guessing from your description that you changed the filename 
but didn't edit the alias to match.
> 
>  
> 
> What's even more puzzling is that the command: help(package=newSTUFF) DOES
> work, as it should.  Only help(newSTUFF) doesn't.

help(package=newSTUFF) treats "newSTUFF" as a package name.

Duncan Murdoch

> 
>  
> 
> How did I mess this up?
> 
>  
> 
> Thanks.
> 
>  
> 
>  
> 
> Charles Annis, P.E.
> 
>  <mailto:Charles.Annis at StatisticalEngineering.com>
> Charles.Annis at StatisticalEngineering.com
> phone: 561-352-9699
> eFax:  614-455-3265
>  <http://www.StatisticalEngineering.com>
> http://www.StatisticalEngineering.com
> 
>  
> 
>  
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list