check_pkg_suggests()
checks to see if packages are installed. This can be
used to check for the existence of packages in the Suggests line.
Arguments
- pkg
A vector of character package names.
Examples
if (FALSE) { # \dontrun{
check_pkg_suggests(c("dplyr", "tidyr"))
check_pkg_suggests(c("dplyr", "tidyr", "notrealpackage", "alsofake"))
} # }