Skip to content

SET_NAMED is going to be deprecated #3729

Closed

Description

@jangorecki

SET_NAMED is going to be deprecated in R C API, we have one use of it:

SET_NAMED(x,0);

Activity

  1. added this to the 1.12.4 milestone on Jul 30, 2019
  2. mattdowle commented on Jul 30, 2019

    @mattdowle
    Member

    Commenting out this one call to setmutable :
    https://github.com/Rdatatable/data.table/blob/master/R/data.table.R#L2393
    results in just two tests failing : 510, 1689.1
    To be honest I don't remember why this is done. From the comment :

    // called from one single place at R level. TODO: avoid somehow, but fails tests without
    // At least the SET_NAMED() direct call is passed 0 and makes no assumptions about >0.  Good enough for now as patch for CRAN is needed.
    

    It looks like we should just try again. Maybe that was done before we updated to depend on R 3.1.
    I don't remember anything fundamental about needing the SET_NAMED. Looks like I tried to remove it before. Just need to get those tests passing without it.

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