Installation of a package in a specified directory: In his example I install the packages 'systemfit' and 'micEcon' in the local library '/home/ma/' install.packages("systemfit", lib="/home/ma/") install.packages("micEcon", lib="/home/ma/") library("micEcon", lib.loc="/home/ma/")