From henrik.bengtsson at gmail.com  Sat Apr  7 20:41:00 2018
From: henrik.bengtsson at gmail.com (Henrik Bengtsson)
Date: Sat, 7 Apr 2018 11:41:00 -0700
Subject: [Rd] solve.default(): solve.qr() or qr.solve() in warning
Message-ID: <CAFDcVCT79PgXaFzQGbYNFVqKA8mfjn1qRnZkbURgAhpnGRDbFQ@mail.gmail.com>

If base::solve.default() is called with a 'qr' object, the following
will take place:

    if(inherits(a, "qr")) {
        warning("solve.default called with a \"qr\" object: use 'qr.solve'")
        return(solve.qr(a, b, tol))
    }

Note how the warning says that qr.solve() should be used, whereas
solve.qr() is called.

Should the warning just say:

    warning("solve.default called with a \"qr\" object: use 'solve.qr'")

or

    warning("solve.default called directly with a \"qr\" object: use 'solve'")?

/Henrik



[Rd] solve.default(): solve.qr() or qr.solve() in warning
Henrik Bengtsson