Simple check for availability of system tools
check_system_tool.Rd
Can be used to verify if a tool (e.g. convert
) is in $PATH
and findable from within R.
Sometimes a tool is in $PATH
in regular shell sessions but not within R.
Arguments
- x
Name of a binary, e.g.
convert
for ImageMagick orbrew
for Homebrew on macOS.- strict
[FALSE]
Whether tostop()
if the tool is not found or returnFALSE
with a warning.- warn
[TRUE]
Whether to show a warning if the tool is no found. Only has an effect if!strict
.