signaturescience / skater

SKATE R Utilities
https://signaturescience.github.io/skater/
Other
9 stars 5 forks source link

Minor issue with plot_pedigree #23

Closed genignored closed 3 years ago

genignored commented 3 years ago

If pdf is specified, but wrong object type is given to plot_pedigree, failure comes after pdf() is called, so you end up with multiple pdf() writes open, which makes actually writing pdf fail until dev.off() on all open handles.

Not sure how to address the issue, however.

stephenturner commented 3 years ago

Oh, easy fix. Just check the class of the thing being fed.