Commit 6175d25
Simplify Ryaml_yoink: remove factor special-casing, always copyMostAttrib
Remove the factor-specific code path that converted factors to STRSXP
in Ryaml_yoink(). Instead, always copy the integer value and call
copyMostAttrib() unconditionally. The existing emit_factor() in
emit_object() handles factor resolution correctly.
This ensures factor handlers work with column.major = FALSE, just
like Date and POSIXt handlers. Added tests for factor columns.
Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com>1 parent 33941e4 commit 6175d25
2 files changed
+18
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
| 264 | + | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
| 268 | + | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 275 | + | |
289 | 276 | | |
290 | 277 | | |
291 | 278 | | |
| |||
300 | 287 | | |
301 | 288 | | |
302 | 289 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 290 | + | |
306 | 291 | | |
307 | 292 | | |
308 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
0 commit comments