njtierney / maxcovr

Tools in R to make it easier to solve the Maximal Coverage Location Problem
http://maxcovr.njtierney.com/
GNU General Public License v3.0
42 stars 11 forks source link

print methods: make S3 methods for tibble's type_sum and obj_sum #43

Open njtierney opened 7 years ago

njtierney commented 7 years ago

Just a small thing for the print method.

https://cran.r-project.org/web/packages/tibble/vignettes/formatting.html

I'm thinking now that maxcovr really should have a simple print method, that displays the information like a regular tibble - but the summary method should provide a nice printed output.

I'm thinking that this is most appropriate because I want to leverage existing infrastructure, and maxcovr is sorta different in that it embraces the many models nested list columns approach as it is a standard format, rather than a list, like most other modelling formats.

If the print method stays the way it is currently, the users don't get to see the nested table format, which is a bit confusing, I think.