Skip to content

.C clarification

2 messages · Terry Therneau, Brian Ripley

#
Does .C duplicate unnecessary arguments?  For instance
  fit <- .C("xxx", as.integer(n), x, y, z=double(15))

The first and fourth arguments would have NAMED = 0. Is my guess that .C
won't make yet one more (unnecessary) copy correct?

(Just trying to understand).

Terry T
#
On 03/03/2012 13:42, Terry Therneau wrote:
.C's internals (do_dotcode) does not know about NAMED.  It duplicates 
(unless DUP=FALSE).

Use .Call if you want to control duplication.