I use R CMD Rdindex man/*.Rd >INDEX in my makefile to generate an INDEX. When I then use R CMD build whatever the newindex seems to be in a slightly different order, resulting in a * checking whether index is up-to-date ... NO (because the result of diff is not empty) and a suggestion to use --force. However, --force results in the INDEX in my source directory being re-written, which means that I can't use it as a dependency for installing because it is always out of date after I build. But if I don't use INDEX as a dependency then my own help system may not be up-to-date, which will be a problem when I'm working on documentation. However, if I don't use --force I will always get warnings which I will tend to ignore, so I won't notice more serious warnings. Is there some way to guaranty the same order from these two ways for generating INDEX? Paul Gilbert (P.S. - I'm not an expert at makefiles but if anyone is interested I am willing to share a fairly good makefile which I use for maintaining two packages and two bundles with several packages in them.) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 12 Jun 2000, Paul Gilbert wrote:> I use > R CMD Rdindex man/*.Rd >INDEX > in my makefile to generate an INDEX. When I then use > R CMD build whatever > the newindex seems to be in a slightly different order, resulting in a > * checking whether index is up-to-date ... NO > (because the result of diff is not empty) and a suggestion to use > --force. > However, --force results in the INDEX in my source directory being > re-written, which means that I can't use it as a dependency for > installing because it is always out of date after I build. But if I > don't use INDEX as a dependency then my own help system may not be > up-to-date, which will be a problem when I'm working on documentation. > > However, if I don't use --force I will always get warnings which I will > tend to ignore, so I won't notice more serious warnings. Is there some > way to guaranty the same order from these two ways for generating INDEX?Set the locale to C? What are the differences: are they related to sort orders? That's the only problem I have seen. (On Solaris en_UK sorts AaBb... not AB..ab....) -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Date: Tue, 13 Jun 2000 11:09:55 -0400 > From: Paul Gilbert <pgilbert@bank-banque-canada.ca> > > >Set the locale to C? What are the differences: are they related to sort > >orders? That's the only problem I have seen. (On Solaris en_UK sorts > >AaBb... not AB..ab....) > > Yes, the problems are all sort order and it looks like this is the reason, > though I haven't completely figured it out yet. My locale setting is "en_CA"at> the office but "C" when I telework, which was confusing things even more. CanI> assume it is "C" that is used by R CMD build?Depends on your Perl installation, perhaps. I would expect it to recognize locales if it is recent. It is more likely that your shell is not using the locale sort. I'd set LANG=C LC_ALL=C via your Makefile, script, whatever. I got tired of this and set all my machines back to C, but you may not have that choice. Brian -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._