This function can be lightly wrapped by package builders to build a user-friendly install checking function.

cmd_install_check(path_search, path = NULL)

Arguments

path_search

function output of cmd_path_search()

path

user-override path to check (identical to path argument of cmd_path_search() output)

Value

pretty printed message indicating whether files exits or not. Green check = Yes, red X = No.

Examples

if (FALSE) { path_search <- cmd_path_search(default = "/bin", utils = "ls") cmd_install_check(path_search) }