Skip to contents

Checks that the TreeScan binary exists and is executable. The non-graphical (command-line) version of TreeScan can be downloaded from https://www.treescan.org/download_treescan.html.

Usage

ts_binary(path = getOption("treescanr.binary", Sys.getenv("TREESCAN_BIN")))

Arguments

path

Path to the binary (e.g., treescan64 or treescan64.exe). Defaults to the treescanr.binary option, then the TREESCAN_BIN environment variable, then treescan64 on the PATH.

Value

The normalized path to the binary.

Examples

if (FALSE) { # \dontrun{
options(treescanr.binary = "~/TreeScan/treescan64")
ts_binary()
} # }