This function can be lightly wrapped by package builders to build a user-friendly install checking function.
cmd_install_check(path_search, path = NULL)
path_search |
|
---|---|
path | user-override path to check (identical to |
pretty printed message indicating whether files exits or not. Green check = Yes, red X = No.
if (FALSE) { path_search <- cmd_path_search(default = "/bin", utils = "ls") cmd_install_check(path_search) }