[Rd] alternative to .Fortran("dqrls", ...)

From: Yanming Di <diy_at_stat.oregonstate.edu>
Date: Wed, 07 Nov 2012 12:26:53 -0800

Hi all,

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 will work.

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.

Many thanks.

Best regards,

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 07 Nov 2012 - 20:34:50 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 07 Nov 2012 - 21:40:52 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive