Skip to content

revdep set needs setalloccol if selfref not ok #7501

Description

@ben-schwen

{popEpi} has the same problem as #7492 but for set instead of :=

DT = unserialize(serialize(as.data.table(mtcars), NULL))
set(DT, j = (c("carb")), value = NULL)

Activity

  1. changed the title [-]set needs setalloccol if selfref not ok[/-] [+]revdep set needs setalloccol if selfref not ok[/+] on Dec 22, 2025
  2. ben-schwen commented on Dec 23, 2025

    @ben-schwen
    MemberAuthor

    Also the problem for irace

    ```
      Running ‘testthat.R’
     ERROR
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
      ── Error ('test-targeteval.R:100:3'): target_evaluator maxTime ─────────────────
      Error in `set(self$experiment_log, j = "iteration", value = NULL)`: Internal error in R_resizeVector_: attempt to resize a non-resizable vector. Please report to the data.table issues tracker.
      Backtrace:
          ▆
       1. └─irace::irace(scenario = scenario) at test-targeteval.R:100:3
       2.   └─irace:::irace_common(scenario, simple = TRUE)
       3.     └─irace:::irace_run(scenario = scenario)
       4.       └─irace:::recoverFromFile(scenario$recoveryFile, scenario = scenario)
       5.         └─race_state$initialize(scenario, recover = TRUE)
       6.           └─data.table::set(self$experiment_log, j = "iteration", value = NULL)
      
      [ FAIL 4 | WARN 0 | SKIP 23 | PASS 1839 ]
      Error:
      ! Test failures.
      Execution halted
    ```
    
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

    revdepReverse dependencies

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions