[R] Quantile Regression Error

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Jan 7 08:47:09 CET 1999


On Wed, 6 Jan 1999, Alvaro A. Novo wrote:

> Hi,
> 
> I installed the package quantreg, but something is wrong. I have no Fortran
> knowledge, but from programming background it seems that the code as some 
> bug/inconsistency. I could only find the file rq.f (see error message below)
> in the directory created
> after untar the package (~/quantreg/src/rq.f). I edited the file and in 
> fact there's a bunch of "go to ..." statements where things are going wrong.

Those are warnings coming from g77 but this is allowed Fortran (if perhaps
not very good Fortran).  You will get warnings from g77 from quite a few
CRAN packages, but in this case I get warnings from Sun's f77 too.

> I believe there's nothing "missing" in my o.s. and/or applications. I was
> able to install the survival analysis package error free.
> 
> Any ideas? Thanks in advance to all for your inputs.

The problem is actually in the output you sent (thanks):

> > library(quantreg)
> Error: dynamic library `Quantreg' not found

Note the case difference. quantreg/R/zzz.R contains

".First.lib" <- 
function(lib, pkg) {
   library.dynam("Quantreg", pkg, lib) }

and you need to replace "Quantreg" by "quantreg". This does not matter on a
DOS file system which is what the submitter used (on Windows 98, I
believe), and indeed the files are in DOS format.

This then works for me. (There is also a line in R/rq.R,

        if(!is.loaded(symbol.For("rq")))
                dyn.load("rq.dll")  #Changed(Kjetil). May need rewording
for non-windows systems 
that should be removed in R.)


I was going to suggest it would be better to contact the porter rather
than this list, but he has not given his email address anywhere in
the files (it is usually in the DESCRIPTION file).  So Kjetil,
quantreg_2.0-2, please. (If you can, use LF-terminated file: the simplest
way I know on Windows is to use zip -ll and then unzip.)


-- 
Brian D. Ripley,                  ripley at 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-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list