Single command for installing (if not already installed) and loading a package. For example, the loadPackage('devtools')
command would run the following code block:
1 2 3 4 | if (!"devtools"%in%rownames(installed.packages())) {
install.packages('devtools')
}
require("devtools")
|
1 | loadPackage(string)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.