This function is a wrapper of the base require function that first tests if the desired package is installed, if not, installs it, and then requires it.
1 2 |
package |
Package name, is passed to require. No default |
character.only |
Defaults to TRUE. Passed to require |
repo |
Defaults to http://cran.us.r-project.org |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.