Skip to content

compatibility: mlr3 1.0.0#242

Merged
pat-s merged 5 commits intomainfrom
task_row_hash
Jul 10, 2025
Merged

compatibility: mlr3 1.0.0#242
pat-s merged 5 commits intomainfrom
task_row_hash

Conversation

@be-marc
Copy link
Member

@be-marc be-marc commented May 26, 2025

Hey, the new mlr3 requires instantiated resamplings to store a hash of the row ids of the task. More info here mlr-org/mlr3#1282. This PR should also work with the current mlr3 CRAN version. Please upload a new mlr3spatiotempcv version to CRAN soon.

@be-marc be-marc changed the title Task row hash compatibility: mlr3 1.0.0 May 26, 2025
@pat-s
Copy link
Member

pat-s commented Jun 23, 2025

@be-marc

Tests still fail

Error: --- re-building ‘mlr3spatiotempcv.Rmd’ using rmarkdown
--- finished re-building ‘mlr3spatiotempcv.Rmd’
--- re-building ‘spatiotemp-viz.Rmd’ using rmarkdown
Quitting from spatiotemp-viz.Rmd:89-148 [unnamed-chunk-4]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `self$task_row_hash <- task$row_hash`:
! cannot add bindings to a locked environment

(I just got a CRAN mail due to the errors likely related to the mentioned changes)

@be-marc
Copy link
Member Author

be-marc commented Jun 23, 2025

Maybe this is a caching issue with tic? It works locally and r-cmd-check-paradox also works.

@be-marc
Copy link
Member Author

be-marc commented Jun 23, 2025

@pat-s
Copy link
Member

pat-s commented Jun 23, 2025

Thanks, I'll have a look.

Maybe this is a caching issue with tic? It works locally and r-cmd-check-paradox also works.

I guess I'll remove tic in the near future.

@pat-s
Copy link
Member

pat-s commented Jul 10, 2025

@be-marc seems to work now, thanks!

Btw: any reason you're not using use-public-rspm: true in the GHA workflows but instead source package installs?

@pat-s pat-s merged commit 559519d into main Jul 10, 2025
8 checks passed
@pat-s pat-s deleted the task_row_hash branch July 10, 2025 12:16
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

Successfully merging this pull request may close these issues.

2 participants