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