#!/bin/csh foreach f (`/bin/ls Packages/ -1`) R CMD INSTALL -l /usr/lib/R/library Packages/$f end