Skip to content
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

melt crashes R in win x64 systems #1059

Closed
ChristK opened this issue Mar 3, 2015 · 0 comments
Closed

melt crashes R in win x64 systems #1059

ChristK opened this issue Mar 3, 2015 · 0 comments

Comments

@ChristK
Copy link

ChristK commented Mar 3, 2015

I'm experiencing immediate crashes to desktop for even simplest operations involving melt in all my win x64 machines after the latest melt updates. In MacOSX and Linux everything works fine. I tried to reinstall data.table several times but doesn't solve my problem. Commit "983c931b6eec96fe6aa52efefd1a1d6ea043074d" works fine for me.

The following minimal example is copy and paste from the melt documentation

set.seed(45)
require(data.table) # Latest github version
DT <- data.table(
      i1 = c(1:5, NA), 
      i2 = c(NA,6,7,8,9,10), 
      f1 = factor(sample(c(letters[1:3], NA), 6, TRUE)), 
      f2 = factor(c("z", "a", "x", "c", "x", "x"), ordered=TRUE), 
      c1 = sample(c(letters[1:3], NA), 6, TRUE), 
      d1 = as.Date(c(1:3,NA,4:5), origin="2013-09-01"), 
      d2 = as.Date(6:1, origin="2012-01-01"))
# add a couple of list cols
DT[, l1 := DT[, list(c=list(rep(i1, sample(5,1)))), by = i1]$c]
DT[, l2 := DT[, list(c=list(rep(c1, sample(5,1)))), by = i1]$c]

# id, measure as character/integer/numeric vectors
melt(DT, id=1:2, measure="f1")  ## Crashes R to desktop

Is anybody else experiencing this behaviour in Windows or is it something with the way I setup all my win systems?

sessionInfo()
#R version 3.1.2 (2014-10-31)
#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.5

#loaded via a namespace (and not attached):
#[1] chron_2.3-45 tools_3.1.2 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant