#!/usr/bin/env Rscript
# called with package name as arg[1]
# and destination as arg[2]
args = commandArgs(trailingOnly=TRUE)
cran = getOption("repos")
cran["CRAN"] = "https://cran.csie.ntu.edu.tw/"
options(repos = cran)
rm (cran)
install.packages(args[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.