8000 R session crashes when assigning using by = .EACHI · Issue #744 · Rdatatable/data.table · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

R session crashes when assigning using by = .EACHI #744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nigmastar opened this issue Jul 31, 2014 · 3 comments
Closed

R session crashes when assigning using by = .EACHI #744

nigmastar opened this issue Jul 31, 2014 · 3 comments
Assignees
Milestone

Comments

@nigmastar
Copy link

The current snippet crashes my r session when it gets to the last statement

library("data.table")
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United Kingdom.1252 
[2] LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] data.table_1.9.3

loaded via a namespace (and not attached):
[1] plyr_1.8.1    Rcpp_0.11.2   reshape2_1.4  stringr_0.6.2
[5] tools_3.1.1 

dt <- data.table(id = c("A", "A", "B", "B", "C"),
                 start = structure(c(12894, 15706, 14153, 14533, 14539), class = "Date"),
                 end = structure(c(15705, 15763, 14532, 14578, NA_real_), class = "Date"),
                 key = "id")

sample <- c("A", "B")

dt[sample,
   temp := c(start[-1L] - 1L, NA_real_),
   by = .EACHI]

Can you reproduce it?

@arunsrinivasan arunsrinivasan added this to the v1.9.4 milestone Jul 31, 2014
@arunsrinivasan
Copy link
Member

Thanks a bunch for the minimal example! Reproducible. Added to 1.9.4 milestone.

@nigmastar

my pleasure! Just to be precise, it also happens without any assignment.

dt[sample, c(start[-1L] - 1L, NA_real_), by = .EACHI]

@arunsrinivasan
Copy link
Member

Thanks again, Michele. Reproducible as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0