While trying to figure out how the Leaps package works, I came across this command:
qrleaps <- .Fortran("makeqr", np = as.integer(np), nn = as.integer(nn),
wt = as.double(wt), tx = t(xx), y = as.double(y), d = numeric(np),
rbar = numeric(nrbar), thetab = numeric(np), sserr = numeric(1),
ier = as.integer(0), PACKAGE = "leaps")
I understand that it uses a Fortran subroutine called makeqr
. I would like to locate this file and read its source code. Any ideas?
CodePudding user response:
My approach is as follows:
- Google "leaps CRAN GitHub" to find the GitHub source clone
- the src/ directory: https://github.com/cran/leaps/tree/master/src
- Ctrl f there or use the repo search feature in GitHub. or in extreme cases, clone the repo and use command-line grep to find the code I need.