From rkoenker at uiuc.edu  Tue Jul  7 15:01:06 2009
From: rkoenker at uiuc.edu (roger koenker)
Date: Tue, 7 Jul 2009 08:01:06 -0500
Subject: [Rd] Generic backsolve?
Message-ID: <771D9F2A-AB08-4A4C-9375-59BA04121958@uiuc.edu>

When loading the package SparseM, a "warning" is generated
indicating:

	The following object(s) are masked from package:base :

One, of three, examples is the function backsolve which is defined
in SparseM as:

setGeneric("backsolve",
         function(r, x, k = NULL, upper.tri = NULL, transpose = NULL,   
twice = TRUE, ...)
                 standardGeneric("backsolve"),
         useAsDefault= function(r, x,  k = NULL, upper.tri = NULL,
                 transpose = NULL, twice = TRUE, ...)
                 base::backsolve(r, x, k = ncol(r), upper.tri = TRUE,
                         transpose = FALSE, ...))

Methods are then defined for sparse matrix classes.

My question is:  Is there a better way to do this that will avoid the
load warning?  Should I revert to the suggestion in the "Writing
R Extensions" manual and avoid the setGeneric approach
entirely?  (My most recent experience is with R 2.9.1, but this
has been an issue for several versions.)


url:    www.econ.uiuc.edu/~roger            Roger Koenker
email    rkoenker at uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Urbana, IL 61801



[Rd] Generic backsolve?
roger koenker