Skip to content

Error in data.table::set(): not a resizable vector #7583

@MLopez-Ibanez

Description

@MLopez-Ibanez

I am the maintainer of irace. CRAN has notified me of an error that started with data.table 1.18.0. See https://www.stats.ox.ac.uk/pub/bdr/M1mac/irace.out You can see one of the errors below.

This seems M1mac-specific. The same tests work in other targets.

I have no clue how to fix this problem. The error may be on my usage of data.table. In any case, any hints on how to fix or work-around the error would be welcome.

Thank you!

  ── Error ('test-targeteval.R:100:3'): target_evaluator maxTime ─────────────────
  Error in `set(self$experiment_log, j = "iteration", value = NULL)`: not a resizable vector
  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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions