Downloads the odiff binary for your platform from the odiff GitHub
releases to the odiffr user cache (odiffr_cache_path()), where
find_odiff() finds it. This is the easiest way to install odiff: it needs
neither Node.js nor npm, nor administrator rights.
Details
install_odiff() is a user-facing wrapper around odiffr_update(): it
downloads the binary (see odiffr_update() for details, e.g. on GitHub
API rate limits), clears odiffr's cached binary lookups so that
find_odiff() and odiff_version() use the new binary straight away, and
reports the installed version and path.
The cached binary is used only when no binary is set via
options(odiffr.path) and no odiff is found on the PATH; a message says
so when another binary takes precedence.
odiffr never downloads anything on its own: the binary is only downloaded
when install_odiff() (or odiffr_update()) is called, or when you
accept the offer find_odiff() makes in interactive sessions.
