[datatable-help] What is going on with R 3.1 ?
Arunkumar Srinivasan
aragorn168b at gmail.com
Sun Apr 27 22:08:16 CEST 2014
Michele,
I've tried with 1.8.10 and 1.9.3, on R3.0.3 and R3.1. And in all cases,
when I load the saved file and do:
attr(dt, ".internal.sefref")
I get:
<pointer: 0x0>
Which of course is expected, and upon another assignment by reference
shallow copies + over-allocates + sets external pointer (under the hood)
and things are fine.
I'm not able to reproduce any of the issues you mention. I understand
you're having a hard time replicating the error as well. I'm not sure how
or what we could do without a way to nicely reproduce this.
Arun.
On Thu, Apr 17, 2014 at 7:15 PM, Michele <carrieromichele at gmail.com> wrote:
> If I try to *copy()* the tables to re-create the pointers all the tables
> get the *same* one, always ending in 788 (opening another R session I get
> the same result, same pointers accross the table, ending in 788):
>
> > dt <- readRDS("dt.RDS")
> > dt1 <- readRDS("dt1.RDS")
> > dput(copy(dt))
> structure(list(id = 1:5, var = c(-0.626453810742332, 0.183643324222082,
> -0.835628612410047, 1.59528080213779, NA)), .Names = c("id",
> "var"), row.names = c(NA, -5L), class = c("data.table", "data.frame"
> ), .internal.selfref = <pointer: 0x00000000003e0788>)
> > dput(copy(dt1))
> structure(list(id = 1:10, var2 = c(9.56605515060971, 9.83445938796679,
> 9.14481066107107, 10.5308762543727, NA, NA, 9.45024506381369,
> 10.0544601882071, 10.7019565371199, 9.60325830155958), var3 = c(99.6542887323489,
> 100.659231456233, 100.282028460177, 101.423474800432, 98.4134121985332,
> NA, 98.0406472259105, 100.253194731594, 100.759881151841, 99.7930775536395
> )), .Names = c("id", "var2", "var3"), row.names = c(NA, -10L), class = c("data.table",
> "data.frame"), sorted = "id", .internal.selfref = <pointer: 0x00000000003e0788>)
>
>
> ------------------------------
> View this message in context: Re: What is going on with R 3.1 ?<http://r.789695.n4.nabble.com/What-is-going-on-with-R-3-1-tp4689002p4689005.html>
>
> Sent from the datatable-help mailing list archive<http://r.789695.n4.nabble.com/datatable-help-f2315188.html>at Nabble.com.
>
>
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20140427/83abf909/attachment.html>
More information about the datatable-help
mailing list