Looks up the toulbar2 executable using either the provided value or the
TOULBAR2_BIN environment variable.
Usage
cjtd_find_toulbar2(
toulbar2_bin = Sys.getenv("TOULBAR2_BIN", unset = "toulbar2")
)Examples
# Try the default lookup using PATH or TOULBAR2_BIN.
try(cjtd_find_toulbar2())
#> Error : toulbar2 was not found.
#>
#> What to do:
#> - Make sure toulbar2 is installed on your system.
#> - If you can run `toulbar2 --help` in a shell, it should work here too.
#> - If it is installed in a location that cannot be found with just `toulbar2`, set `TOULBAR2_BIN` to the full path or pass `toulbar2_bin` directly.
# You can also provide an explicit executable name or full path.
# cjtd_find_toulbar2("/path/to/toulbar2")