needs | R Documentation |
Check the Availability of a Package
needs(x, ask = TRUE)
x |
A |
ask |
A |
needs()
is designed for use inside other functions in your own package
to check for the availability of a suggested package.
If the required packages are not available and R is running interactively, the user will be asked to install the packages.
Invisibly returns NULL
.
N. Frerebeau
Other validation methods:
check-attribute
,
check-data
,
check-matrix
,
check-numeric-comparison
,
check-numeric-trend
,
check-numeric
,
check-type
,
validate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.