#!/bin/sh for f in $* do sudo R --vanilla -e "install.packages('"$f"', repos='http://cran.us.r-project.org')" done