I\'m developing my first R package (using R 2.13, Ubuntu 10.10). Let\'s call it foo and let\'s say that the code in the R/ directory begins with the line libra
Similar to @Jonathan Le, but better for script usage :
sudo R --vanilla -e 'install.packages("forecast", repos="http://cran.us.r-project.org")'