Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Find Fortran file used in R package

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

My approach is as follows:

  1. Google "leaps CRAN GitHub" to find the GitHub source clone
  2. the src/ directory: https://github.com/cran/leaps/tree/master/src
  3. 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.
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading