Skip to content

Commit

Permalink
docs: update news (and minor improvement)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Oct 20, 2023
1 parent 8a44332 commit 4952f5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# mlr3misc 0.12.0-9000
# mlr3misc 0.13.0-9000

* Added the possibility to include prototype arguments when adding elements to a `Dictionary`

# mlr3misc 0.13.0

* Updated default environment for `crate()` to `topenv()` (#86).
* Added safe methods for dictionary retrieval (#83)
Expand Down
2 changes: 1 addition & 1 deletion R/Dictionary.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Dictionary = R6::R6Class("Dictionary",
assert_character(required_args, any.missing = FALSE)

dots = assert_list(list(...), names = "unique", .var.name = "additional arguments passed to Dictionary")
assert_list(.prototype_args, names = "unique", .var.name = "prototype args")
assert_list(.prototype_args, names = "unique", .var.name = "prototype arguments")
assign(x = key, value = list(value = value, pars = dots, required_args = required_args, prototype_args = .prototype_args), envir = self$items) # nolint
invisible(self)
},
Expand Down

0 comments on commit 4952f5d

Please sign in to comment.