[Rd] Generic backsolve?
roger koenker
rkoenker at uiuc.edu
Tue Jul 7 15:01:06 CEST 2009
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
More information about the R-devel
mailing list