Closed pat-s closed 2 years ago
@s-kganz You have the following options:
remotes::install_github("mlr-org/mlr3pipelines@fix-661")
@pat-s RE option 3: awww, but it's so much fun! :)
I'll use the hotfix for now, I appreciate your quick response!
Closed by #662
Ref: https://github.com/mlr-org/mlr3spatiotempcv/issues/170
Created on 2022-04-28 by the reprex package (v2.0.1)
Context
R 4.2.0 is stricter WRT to sloppy subsetting. {mlr3spatiotempcv} adds an entry to
mlr_reflections$task_types
which let's the follwing subset calls in {mlr3pipelines} throw the error reported above. There might be possibly more such instances in all of our pkgs which just turn into errors now (as of R 4.2.0).https://github.com/mlr-org/mlr3pipelines/blob/e55b0a93b11c109534d5fd1db3b0d47a0a7e53ed/R/PipeOpTrafo.R#L385
https://github.com/mlr-org/mlr3pipelines/blob/e55b0a93b11c109534d5fd1db3b0d47a0a7e53ed/R/PipeOpRandomResponse.R#L124-L124
Possible solutions:
[1]
to the subset to make it explicit[1]