Skip to content

rownames(dt[, -"col"]) hanging under R 3.4 #3216

Description

@renkun-ken

With the latest commit 5b16cc5, the following code will end up in hanging:

library(data.table)

dt <- data.table(id = 1:10, x = rnorm(10))
rownames(dt) # works
rownames(dt[, .(id)]) # works
rownames(dt[, -"id"]) ## hanging!

This happens under R 3.4.x. It does not hang under R 3.5.x.

Activity

  1. jangorecki commented on Dec 14, 2018

    @jangorecki
    Member

    Thanks for reporting!
    On 3.4.4 I am getting following error

    rownames(dt[, -"id"])
    #Error: cannot allocate vector of size 5.1 Gb

    On 3.5.1 I am getting

    rownames(dt[,-"id"])
    #character(0)

    which is actually not a correct answer, reported in #3217

  2. added this to the 1.12.0 milestone on Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions