YuLab-SMU / treeio

:seedling: Base Classes and Functions for Phylogenetic Tree Input and Output
https://yulab-smu.top/treedata-book/
94 stars 24 forks source link

make write.jtree more efficient and less noisy #117

Closed SimonGreenhill closed 9 months ago

SimonGreenhill commented 9 months ago

Description

write.jtree cats a lot of output to the screen during testing, this hides other errors.

This PR does two things:

  1. reduces the number of calls to cat (i.e. as each call to cat opens a file connection, this is slow and inefficient)
  2. Removes the noisy output in the test.