You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. This is now fixed in the development version on GitHub (ef76018):
reactable() now works for data frames with difftime objects and objects with custom classes (#164).
The error comes from the jsonlite package not supporting the conversion of difftime objects to JSON, so the fix was to force serialization of these unsupported objects using jsonlite::toJSON(x, force = TRUE). It's not perfect because the difftime objects are just treated as raw numbers, but I think it's the best we can do in reactable. The better solution would be to add difftime support to jsonlite.
Without this fix, you can work around this issue by manually converting the difftime column to numeric values, then adding the units to the formatting:
The package may need a method to handle
difftime
.The text was updated successfully, but these errors were encountered: