$ R > install.packages("csv", "lib")
This will install the "csv" package in the "lib" folder. It will also install all the dependencies.