exec_version: Get executable version

Description Usage Arguments Value Examples

View source: R/informations.R

Description

get the version of an executable.

Usage

1

Arguments

exec

executable identifier, a single character. Use one of these values:

  • chrome: "Google Chrome" executable

  • libreoffice: "LibreOffice" executable

  • node: "node.js" executable

  • npm: "npm" executable

  • python: "python" executable

  • pip: "pip" executable

Value

a numeric_version() with the version of the executable found.

Examples

1
2
3
4
5
6
7
8
if(is_available("chrome"))
  message(exec_version("chrome"))
if(is_available("node"))
  message(exec_version("node"))
if(is_available("python"))
  message(exec_version("python"))
if(is_available("libreoffice"))
  message(exec_version("libreoffice"))

davidgohel/locatexec documentation built on Feb. 17, 2021, 9:46 a.m.