[Rd] alternative to .Fortran("dqrls", ...)
diy at stat.oregonstate.edu
Wed Nov 7 21:26:53 CET 2012
In a package I maintain, I use the "dqrls" from the base package to fit
regression models. However, I was informed that directly calling functions
from the base package is no longer allowed:
"CRAN packages should use only the public API. Hence they should not use
entry points not declared as API in installed headers nor .Internal()
nor .Call() etc calls to base packages. Such usages can cause packages
to break at any time, even in patched versions of R."
Prof. Ripley suggested that one can replace such calls with lm.wfit, which
However, in my package, the call will need to be implemented hundreds of
thousands times. Using lm.wfit is much slower. I am wondering whether there
is alternative ways that are more efficient. I can program in C if needed.
More information about the R-devel