This function checks to see if packages are installed, installs them if needed, and then loads and attaches them. This can be useful in reproducable work, when one uses a more obscure package. Granted, containing it in a package creates another problem, but the code can be distributed and copied easily.
1 | install_missing_packages(packages)
|
packages |
a character vector of package names to be loaded |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.