Skip to content

Commit d0a27d7

Browse files
be-marcclaude
andcommitted
chore: update agent
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 164e9a5 commit d0a27d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.agents/mlr3.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Use structured error/warning functions from mlr3misc: `error_config()`, `error_i
8181
- New learners must pass `run_autotest()` and `run_paramtest()`.
8282
- Use shared assertion helpers: `expect_learner()`, `expect_task()`, `expect_resampling()`, `expect_measure()`, `expect_prediction()`.
8383
- Shared test infrastructure lives in `inst/testthat/` and is sourced by extension packages too.
84+
- Use `skip_if_not_installed(<package_name>)` to skip tests that require suggested packages.
8485

8586
### Documentation
8687

@@ -97,6 +98,7 @@ Use structured error/warning functions from mlr3misc: `error_config()`, `error_i
9798
- Bibliographic references go in `R/bibentries.R` and are cited with `` `r format_bib("key")` ``.
9899
- Man page names for dictionary objects follow `mlr_learners_classif.rpart`, `mlr_tasks_iris`, etc.
99100
- When you write examples, make sure they work.
101+
- Wrap examples that use suggested packages in `if (mlr3misc::require_namespaces(<package_name>, quietly = TRUE)) {..}` blocks.
100102

101103
### `NEWS.md`
102104

0 commit comments

Comments
 (0)