Skip to contents

Detect and locate executables

Core functions to check whether a program is installed, get its version, and retrieve the path to its executable. exec_available() tests availability (optionally for a minimum version), exec_version() returns the version found, and exec_locate() performs the search.

exec_available()
Check executable availability and version
exec_version()
Get executable version
exec_locate()
Find an executable

Path to a specific executable

Convenience wrappers that return the full path to a given program, regardless of the operating system and its configuration.

air_exec()
Path to 'air' executable
chrome_exec()
Path to 'Google Chrome' executable
excel_exec()
Path to 'Microsoft Execl' executable
firefox_exec()
Path to 'Mozilla Firefox' executable
libreoffice_exec()
Path to 'LibreOffice' executable
node_exec()
Path to 'node.js' executable
npm_exec()
Path to 'npm' executable
pandoc_exec()
Path to 'pandoc' executable
pip_exec()
Path to 'pip' executable
powerpoint_exec()
Path to 'Microsoft PowerPoint' executable
python_exec()
Path to 'python' executable
word_exec()
Path to 'Microsoft Word' executable

Operating system

Helpers to test which operating system R is running on.

is_windows()
Test if the system is "Windows"
is_osx()
Test if the system is "macOS"
is_unix()
Test if the system is "unix"