[R] Arguments of R- and C-side of internal functions
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Fri Jan 17 16:34:03 CET 2003
Timur Elzhov <Timur.Elzhov at jinr.ru> writes:
> Second, who pass the other, `call', `op' and `rho' parameters
> to `do_optim() ?'
You mean "why" I suppose.
op: Some functions are mapped into the same C function (do_math2, for
example) so you need to know which one.
call: The whole call is passed mainly for the benefit of error
printouts. It is not always possible to reconstruct it from the other
arguments, since "op" may be computed as in get("+")(2,2).
rho: this is the evaluation environment, and it is crucial for
variable lookup etc.
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
More information about the R-help