Generic backsolve?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Generic backsolve?

RKoenker
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    [hidden email]            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Urbana, IL 61801

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel