From renaud at mancala.cbio.uct.ac.za  Fri Jun 17 13:35:38 2011
From: renaud at mancala.cbio.uct.ac.za (Renaud Gaujoux)
Date: Fri, 17 Jun 2011 13:35:38 +0200
Subject: [Rd] Why does slot<- duplicate its argument?
Message-ID: <4DFB3C0A.4030701@cbio.uct.ac.za>

Hi,

is there a reason why `slot<-` should duplicate its argument?
I am under R 2.12.1.

Thank you,
Renaud

For example:

setClass('A', representation(data='matrix'))
a <- new('A')
x <- matrix(1,2,3)
tracemem(x)
slot(a, 'data') <- x


 

###
UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mai...{{dropped:5}}



[Rd] Why does slot<- duplicate its argument?
Renaud Gaujoux