package_check | R Documentation |
check if package is available and provide installation instruction if not available
package_check(
pkg_name,
repository = c("CRAN", "Bioc", "github", "pip"),
github_repo = NULL,
optional = FALSE,
custom_msg = NULL
)
pkg_name |
name of package |
repository |
where is the package |
github_repo |
name of github repository if needed |
optional |
whether the package is optional. |
custom_msg |
custom message to be sent instead of default error or message |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.