Hi, I am wondering if it is possible to view the Fortran source code called by R functions. In particular, I am interested in the "leaps.setup" function in a package called "leaps", which calls Fortran functions "ssleaps", "initr" etc. Any help would be greatly appreciated. Ka Yee Yeung Bioinformatics Scientist Dept of Microbiology University of Washington
Ka Yee Yeung <kayee at u.washington.edu> writes:> Hi, > > I am wondering if it is possible to view the Fortran source code called by > R functions.R is Open Source, and so are most of the packages developed for it. Would be a rare case if the source code was not available.> In particular, I am interested in the "leaps.setup" function in a > package called "leaps", which calls Fortran functions "ssleaps", "initr" > etc. > > Any help would be greatly appreciated.Look inside http://cran.r-project.org/src/contrib/leaps_2.6.tar.gz -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
They are part of the package leaps_2.6.tar.gz on CRAN. Just look at the source package and not (I assume) a binary installation. On Mon, 26 Jan 2004, Ka Yee Yeung wrote:> I am wondering if it is possible to view the Fortran source code called by > R functions. > > In particular, I am interested in the "leaps.setup" function in a > package called "leaps", which calls Fortran functions "ssleaps", "initr" > etc.-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Dear All, After spending 3 long days attempting to interface Fortran with R--having spent 1 week sifting through R-help and the horrific official documentation--I cannot emphasize in words the importance of consulting 1 and-only 1 reference: Venables, W.N., B.D. Ripley, S Programming. Springer, New York, 2000. My goodness gracious, I should have started with that book first, I would have saved an incredible amount of time. My interface to a rather long library subroutine was done and tested in less than 30 minutes! My experience is posted in the hope that it will save someone TIME (the most precious of anything in the universe) I hope an up-to-date and expanded version of that fabulous book is also in the works. /Livin La Vida Loca