mlr-org / mlr3book

Online version of Bischl, B., Sonabend, R., Kotthoff, L., & Lang, M. (Eds.). (2024). "Applied Machine Learning Using mlr3 in R". CRC Press.
https://mlr3book.mlr-org.com/
MIT License
254 stars 59 forks source link

fix: use old renv version and upgrade mlr3misc version #736

Closed sebffischer closed 1 year ago

sebffischer commented 1 year ago

The "large-scale benchmarking" chapter always threw because of a change in renv that started to install packages with --with-keep.source this had two problems:

  1. methods of R6 intances had a srcref object containing a promise with a large environment
  2. function parameters (as in the robustify pipeline) were also quite large because from there one can also reach enviroments where a lot of srcrefs are kept

While this is inherently an issue that needs to be addressed in renv -- i.e. there should be an option to not keep the source -- we here fix it temporarily by relying on an older renv version and bumping the mlr3misc version where the problem is solved

https://github.com/rstudio/renv/issues/1713 https://github.com/mlr-org/mlr3misc/issues/88

github-actions[bot] commented 1 year ago

Preview