powered by
This function can be lightly wrapped by package builders to build a user-friendly install checking function.
cmd_install_check(path_search, path = NULL)
function output of cmd_path_search()
function
cmd_path_search()
user-override path to check (identical to path argument of cmd_path_search() output)
path
pretty printed message indicating whether files exits or not. Green check = Yes, red X = No.
# NOT RUN { path_search <- cmd_path_search(default = "/bin", utils = "ls") cmd_install_check(path_search) # }
Run the code above in your browser using DataLab