View source: R/checkPackages.R
checkPackages | R Documentation |
Checks if a package is installed without loading it. Returns a logical vector with TRUE
or FALSE
for each package checked.
checkPackages( ..., add = c("highlight", "formatR", "shiny", "shinydashboard", "shinydashboardPlus", "DT") )
... |
character: name(s) of package |
add |
character: names of default packages to check (default: |
TRUE
if successful otherweise an error will be thrown
checkPackages("graphics", add=NULL) # checks if 'graphics' is installed if (interactive()) checkPackages("graphics") # checks if 'graphics', 'shiny', ... are installed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.