For example, I am looking into a R function PTdensity.R source code in a package called DPpackage, where I found the author called a fortran function ptdensityu :
foo <- .Fortran("ptdensityu", ...
The thing is how to find source code for ptdensityu subroutine. It may contains in a certain fortran file in /src/ directory, but how do I know which file is it. (Actually I found it by manually check each file under /src/ and found it is in the /src/PTudensity.f.)
Quick link for the package : link
PS: I used to use this link to search source code, but somehow it does not work any more.
On a linux box, you use the
grepcommand. In emacs, you build a tags file. In other editors there’s probably similar functions. In Windows, can’t you right click on a folder, hit Search… and fill in the ‘A word or phrase in the file” box. Or install cygwin and use thegrepcommand.Amazes me that people are using computers without basic skills such as finding a string in a file…