rdinnager / slimr

Run and Analyse SLiM Population Genetics Forward Simulations from R.
https://rdinnager.github.io/slimr
Other
7 stars 1 forks source link

Add full set of S3 methods for slimr_results and slimr_results_coll objects #29

Open rdinnager opened 3 years ago

rdinnager commented 3 years ago

Trying to print a slimr_results object can freeze up the console because it tries to print the entire object which may include very large strings. We may also need to add print method just for the data slot because that is where the big strings are. We may need to split the strings by newline and only print the first few lines. Also should add a glimpse method. Might also be good to have a function that can open a large bit of text data in a text editor, because the R console is not too helpful for exploring large chunks of text.