Re: [R] debian packages and html help on linux

About this list Date view Thread view Subject view Author view Attachment view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Wed 26 May 2004 - 04:29:42 EST


Message-id: <Pine.LNX.4.44.0405251925080.2915-100000@gannet.stats>

On Tue, 25 May 2004, Dirk Eddelbuettel wrote:

> On Tue, May 25, 2004 at 06:14:42PM +0100, Prof Brian Ripley wrote:
> > On Tue, 25 May 2004, Kari Ruohonen wrote:
> >
> > > I have a fresh installation of R from debian unstable packages. The
> > > html index found in /usr/lib/R/doc/html/index.html works in Mozilla
> > > and under the link of 'packages' on this page I have a list and
> > > corresponding links. However, it appears that not all packages I have
> > > installed from available deb files via apt-get, will get their link
> > > updated to this package index. Specifically, from packages
> > > r-cran-boot, r-cran-car, r-cran-coda, r-cran-design, r-cran-effects,
> > > r-cran-foreign, r-cran-gregmisc, r-cran-hmisc, r-cran-its,
> > > r-cran-lattice, r-cran-lmtest, r-cran-mcmcpack, r-cran-mgcv,
> > > r-cran-multcomp, r-cran-relimp, r-cran-rgl, r-cran-rpart, r-cran-sm,
> > > r-cran-tseries, r-cran-vr, r-omegahat-ggobi, r-cran-kernsmooth none
> > > appeared to html package index. This also means that html search
> > > doesn't find functions within these packages although it otherwise
> > > works perfectly with my Mozilla.
> > >
> > > What shall I do to get also these package to the package index?
> >
> > Use the correct index: see ?help.start. Installing a package does not
> > update /usr/lib/R/doc/html/packages.html, but help.start() creates a
> > current index dynamically.
> >
> > If you really want to do this without running R, use
> >
> > R CMD perl /usr/lib/R/share/perl/build-help.pl --htmllists
> >
> > to update the static index. From inside R you can run
> > make.packages.html(). In both cases, you need write permission in
> > /usr/lib/R/doc/html.
>
> That sounds like something we could easily execute via the postinst script
> once the package as been unpacked. As that step runs as root, permissions
> would not be an issue.

Might be a good idea. R (except on Windows/MacOSX) is not really set up
for binary package installs, but on Windows install.packages() does the
R-level equivalent (and I remembered wrongly: on Unix make.packages.html()
works in tmpdir/.R).

> Would that step alleviate the need for the per-user ~/.R/ index ?

Actually, it is per-session in a tempdir these days. Not really, as
there can be several library trees in use.

-- 
Brian D. Ripley,                  ripley@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

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:12 EST