asmagen / robustSingleCell

Robust single cell clustering and comparison of population compositions across tissues and experimental models via similarity analysis.
http://dx.doi.org/10.1016/j.celrep.2019.10.131
MIT License
13 stars 2 forks source link

Clean up open file connection after function throw an error #8

Closed Mamie closed 5 years ago

Mamie commented 5 years ago

Change sink to cat for all functions requiring logging

Mamie commented 5 years ago

Added on.exit to close file connection from sink even when the functions exit with an error.