The attached patch adds a method ".duplicate" to rinterface.Sexp
objects. When called, it returns a new Sexp that is identical to the
first, but shares no memory with the first. (Underlyingly, it just
calls Rf_duplicate.)

This is useful when you have an Sexp that you want to mutate, but you
also want to correctly preserve R's copy-on-write semantics.

Tests are included, and pass for me.

-- Nathaniel

Attachment: NEW_expose_Rf_duplicate
Description: Binary data

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to