output_result
is used to present the result
and save the result as tsv.
output_result(result, view = "", ...)
is the result from find_optimised_snps
how to present the output, "csv" or "tsv" will be saved as a file. Otherwise, printed to console.
if view is "tsv" or "csv", file name can be passed, e.g., file_name = "result.tsv", otherwise, file is saved as <timestamp>.tsv.
NULL, result either printed or saved as tsv.