Reputation: 2455
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.
Upvotes: 0
Views: 615
Reputation: 94317
On a linux box, you use the grep
command. 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 the grep
command.
Amazes me that people are using computers without basic skills such as finding a string in a file...
Upvotes: 2