check_pkg_suggests: Check if Packages are Installed

View source: R/check_pkg_suggests.R

check_pkg_suggestsR Documentation

Check if Packages are Installed

Description

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.

Usage

check_pkg_suggests(pkg)

Arguments

pkg

A vector of character package names.

Examples

## Not run: 
check_pkg_suggests(c("dplyr", "tidyr"))
check_pkg_suggests(c("dplyr", "tidyr", "notrealpackage", "alsofake"))

## End(Not run)

Technomics/costmisc documentation built on Nov. 12, 2024, 8:05 a.m.