pkg <- commandArgs(TRUE)
pkgNames <- names(installed.packages()[, "Package"])
installed <- pkg %in% pkgNames
nres <- cbind(pkg, installed)
print(nres)
if (any(!installed)) {
q("no", 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.