[R] copying R objects in C

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu May 6 16:51:08 CEST 2004


On Thu, 6 May 2004, Tamas Papp wrote:

> You can tell what a function does by looking at its help page, eg:
> 
> ?duplicate
> 
> There is no such function in R (1.9.0), so I don't see how you came
> across that function name.

It's a C function (see the subject line), except that the external symbol
name gets remapped to Rf_duplicate.  You need this for writing code for
the .Call and similar interfaces.

> R performs a deep copy "on demand", and generally you should not worry
> about this, just use the assignment operator "<-".

Not `from C'.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list