Matthew Kay
Matthew Kay
I suppose we should probably document this somewhere and/or make it easier to do, e.g. by including the refhook functions above in the package.
Hmm yeah. Might be able to do something that walks an object tree and just clears all rvar caches for saving.
Hmmm, that's a tough one. It does seem like the default behavior of `[` should be to keep reserved variables (or at least `.log_weight` --- which is currently equivalent since...
In case it is desired, adding derivative support for this should entail something like: ```r transform_rescale
Cool, yeah. If I understand the intention, it wouldn't use rvar's specialized indexing with `[` and `[[`, but could probably implement many of the other functions of rvars? This could...
Hmm, I would probably wait on this until the weighted rvars stuff is merged, since that will add another attribute to `rvar` that will have to be dealt with. Then,...
FWIW, I think the unnesting / flattening might be doable as a cbind on row vectors (or maybe vec_cbind / vec_rbind for safety) to create a 1-row data frame. Dunno...
Ah right... you might be able to use cbind if you conditionally transpose (or rbind) vectors of length > 1 to turn them into row vectors (not on a computer...
Would it make sense to have a backend option for draws_df that applies the draws_df class on top of a data frame? Or would the semantics of data table break...
Ah, sorry I wasn't clear. The current draws_df class is: ```r class(as_draws_df(example_draws())) ## [1] "draws_df" "draws" "tbl_df" "tbl" "data.frame" ``` i.e., it uses tibble as its base class. However, S3...