Commit 05c7c68
authored
* groupingsets(): introduce and make use of 'enclos'
When forwarding NSE arguments via jj=, also forward the environment
containing the symbols they may be referencing. Now groupingsets()
substitutes all the local arguments into the call and then evaluates x[,
jj, ...] in the specified environment, making it possible for jj to
refer to local symbols without confusing them to variables belonging to
groupingsets() or its caller.
To avoid cedta() problems, set .datatable.aware = TRUE in the
environment where the call is evaluated. (A column named
.datatable.aware would be shadowed. So it goes.)
* NEWS item
1 parent ccef071 commit 05c7c68
File tree
4 files changed
+40
-6
lines changed- R
- inst/tests
- man
4 files changed
+40
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
153 | 159 | | |
154 | | - | |
| 160 | + | |
| 161 | + | |
155 | 162 | | |
156 | 163 | | |
157 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21252 | 21252 | | |
21253 | 21253 | | |
21254 | 21254 | | |
| 21255 | + | |
| 21256 | + | |
| 21257 | + | |
| 21258 | + | |
| 21259 | + | |
| 21260 | + | |
| 21261 | + | |
| 21262 | + | |
| 21263 | + | |
| 21264 | + | |
| 21265 | + | |
| 21266 | + | |
| 21267 | + | |
| 21268 | + | |
| 21269 | + | |
| 21270 | + | |
| 21271 | + | |
| 21272 | + | |
| 21273 | + | |
| 21274 | + | |
| 21275 | + | |
| 21276 | + | |
| 21277 | + | |
| 21278 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments