Description Usage Arguments Value Examples
Read package list and check if a package is installed or not.
1 | has_package(pkg, lib.loc = NULL)
|
pkg |
a character vector, each value represents a package name. |
lib.loc |
a character vector of directory names of R libraries, or 'NULL'. The default value of 'NULL' corresponds to all libraries currently known.' |
a logical vector. TRUE means the package is installed.
1 | has_package('stringr')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.