File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
# mlr3misc 0.12.0-9000
2
2
3
+ * Updated default environment for ` crate() ` (#86 ) to ` topenv() ` .
3
4
* Added safe methods for dictionary retrieval (#83 )
4
5
* fix: Fixed an important bug that caused serialized objects to be overly large
5
- when installing mlr3 with ` --with-keep.source ` (#88 )
6
+ when installing mlr3 with ` --with-keep.source ` (#88 )
6
7
7
8
# mlr3misc 0.12.0
8
9
Original file line number Diff line number Diff line change 8
8
# ' @param ... (any)\cr
9
9
# ' The objects, which should be visible inside `.fn`.
10
10
# ' @param .parent (`environment`)\cr
11
- # ' Parent environment to look up names. Default so the global environment .
11
+ # ' Parent environment to look up names. Default to [topenv()] .
12
12
# '
13
13
# ' @export
14
14
# ' @examples
24
24
# ' z = 300
25
25
# ' f = meta_f(1)
26
26
# ' f()
27
- crate = function (.fn , ... , .parent = .GlobalEnv ) {
27
+ crate = function (.fn , ... , .parent = topenv() ) {
28
28
nn = map_chr(substitute(list (... )), as.character )[- 1L ]
29
29
environment(.fn ) = list2env(setNames(list (... ), nn ), parent = .parent )
30
30
.fn
You can’t perform that action at this time.
0 commit comments