MUCollective / multiverse

R package for creating explorable multiverse analysis
https://mucollective.github.io/multiverse/
GNU General Public License v3.0
62 stars 5 forks source link

.error or .messages column for expand() #82

Closed abhsarma closed 2 years ago

abhsarma commented 4 years ago

Since it seems like expand() is going to be the primary interface for interacting with the multiverse, it might be useful to have a .error column to indicate which universe has thrown an error?

mjskay commented 4 years ago

This is related to #68, yes? I think the .error column should contain a traceback object of the error. I like the idea of having a .messages column as well to contain any messages (not sure how hard it is to intercept messages and also have them in the normal universe output).

abhsarma commented 4 years ago

I think traceback is a good idea, but the base traceback won't work with tryCatch which we are using so that errors in universes don't stop the multiverse execution. Seems like there's evaluate::try_capture_stack worth a shot?

mjskay commented 4 years ago

ooo, good catch!