Skip to contents

Used in conjunction with tic() to find the elapsed time when code is executed.

Usage

check_deps(deps = c(), verbose = FALSE, stop_on_error = FALSE)

Arguments

deps

list of package dependencies to check (e.g., c("dplyr"))

verbose

boolean indiciating if messages should be sent back to the user (default FALSE)

stop_on_error

boolean indiciating if messages should be sent back to the user (default FALSE)

Value

List with the following elements

  • isgood TRUE if all the packages were foudn

  • msgs Verbose messages

  • pkgs_missing Vector of packages that were not found.

Examples

check_deps(deps=c("dplyr", "ggplot2","bob"), verbose=TRUE)
#>  The following packages are missing: bob
#> $isgood
#> [1] FALSE
#> 
#> $pkgs_missing
#> [1] "bob"
#>