The idea here is to add a class argument to slimr_output. Any output produced by the call will be given the class. A user (or a developer) can then create a slim_extract() method for that output, which would convert it into a usable form in R. Then slim_results_to_data() can just call slim_extract() on all elements of the output column in the results, which would make things a lot cleaner, and make it easier to make custom output formats.
The idea here is to add a
classargument toslimr_output. Any output produced by the call will be given the class. A user (or a developer) can then create aslim_extract()method for that output, which would convert it into a usable form in R. Thenslim_results_to_data()can just callslim_extract()on all elements of the output column in the results, which would make things a lot cleaner, and make it easier to make custom output formats.