Skip to content
Back to formatted view

Raw Message

Message-ID: <4DFB3C0A.4030701@cbio.uct.ac.za>
Date: 2011-06-17T11:35:38Z
From: Renaud Gaujoux
Subject: Why does slot<- duplicate its argument?

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}}