utils.dependencies

Module Contents

utils.dependencies.which(cmd_name)[source]

Utility equivalent to which in GNU/Linux OS.

Parameters:cmd_name – a command name
Returns:return the command name with absolute path if this exists, or None
utils.dependencies.is_py_package_installed(package)[source]

Utility checking whether a Python package is installed.

Parameters:package – a Python package name
Returns:True if it is installed, false otherwise.
utils.dependencies.is_r_package_installed(package)[source]

Utility checking whether a R package is installed.

Parameters:package – an R package name
Returns:True if it is installed, false otherwise.