Generic backsolve?

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

Generic backsolve?

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

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

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

         function(r, x, k = NULL, upper.tri = NULL, transpose = NULL,  
twice = TRUE, ...)
         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:            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