Bug 15353 - rep.int not duplicating as necessary
rep.int not duplicating as necessary
Status: CLOSED FIXED
Product: R
Classification: Unclassified
Component: Low-level
R 3.0.0
Other Other
: P5 normal
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-25 01:43 UTC by Duncan Murdoch
Modified: 2013-06-30 14:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Murdoch 2013-06-25 01:43:45 UTC
Found by Radford Neal:

rep.int does not duplicate as necessary, illustrated by the following:
      
         a<-list(1,2)
         b<-rep.int(a,c(2,2))
         b[[1]][1]<-9
         print(a[[1]])

gives

[1] 9
Comment 1 Duncan Murdoch 2013-06-30 14:34:12 UTC
Fixed in R-devel r63113, soon in R-patched.