Skip to content
Prev 3989 / 63424 Next

ordering in R CMD build & R CMD Rdindex

BDR> The shell expands the * before Rdindex ever gets hold of it. And what it
BDR> does re locales is an installation default (assuming it is a Solaris shell
BDR> not bash or tcsh, for both of which NLS support is optional).
Maybe I miss something here, but ...

What R CMD build currently does to list the Rd files in a package is

	find man -name "*.[Rr]d" -print | sort

When building the indices this list is fed to R CMD Rdindex.

On the other hand, R CMD Rdindex itself simply loops through the list of
Rd files it was given as arguments, without any reordering (which I
think is what it should do).

Now note that R CMD Rdindex dates back to a time where we did not have R
CMD build.  Now that we have it, I am inclined to say that when you
start with a package, you simply use R CMD build to bundle it up, and
this will automatically build the index for you (without having to worry
about the ordering), i.e., I would consider Rdindex as something more
low-level.

But in any case, I recommend we do the following:

* Extend Rdindex so that if one of its arguments is a directory, it
obtains the list of Rd files as done by R CMD build.

* In both cases, ensure e.g. the C order for consistency.  I.e., R CMD
build and Rdindex should both do LC_ALL=C.

Note that currently we are not very smart building indices, because the
name/alias scheme of Rd is not powerful enough.  1.2 may have something
like an \index entry allowing to specify the information that should go
into the INDEX (and searchable indices etc.).

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._