anystyle_path() returns the path of the anystyle command-line tool used by
the package; check_anystyle() checks that it runs and returns its version.
Value
anystyle_path(): the path of the executable, or NA if it is not
found. check_anystyle(): invisibly, the version string (e.g.
"anystyle version 1.6.0 (cli 1.5.0, data 1.3.0)"); it fails with an
informative error if anystyle cannot be run.
Details
The executable is searched, in order:
in the option
anystyleR.anystyle(e.g.options(anystyleR.anystyle = "~/.local/share/gem/ruby/bin/anystyle")in your.Rprofile);in the environment variable
ANYSTYLE_PATH;on the
PATH(Sys.which("anystyle"));in the user gem directories of RubyGems (where
gem install --user-installputs it, often not on thePATH).
