[R] Fortran?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Oct 14 09:34:43 CEST 2005


"Sam R. Smith" <samrobertsmith at yahoo.com> writes:

> In a package, i type a function name and got the following message:
> ...
>  tmp <- .Fortran("master", x = as.double(x), y = as.double(y), 
>             sort = as.logical(sort), rw = as.double(rw), npd = as.integer(npd), 
>             ntot = as.integer(ntot), nadj = integer(tadj), madj = as.integer(madj), 
>             ind = integer(npd), tx = double(npd), ty = double(npd), 
>             ilist = integer(npd), eps = as.double(eps), delsgs = double(tdel), 
>             ndel = as.integer(ndel), delsum = double(ntdel), 
>             dirsgs = double(tdir), ndir = as.integer(ndir), dirsum = double(ntdir), 
>             nerror = integer(1))
> ...
> does it mean this function is using something from FORTRAN?

Well, it's using a binary object that was compiled from FORTRAN code.

The sources for the package will contain the actual human-readable
code. For more details (likely more than you can handle at this
point...), look in the Writing R Extensions manual.

> Thanks a lot!

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list