Installing ncdf in R

$ mkdir -p ~/.R/libs
$ export R_LIBS=~/.R/libs
$ echo 'R_LIBS=~/.R/libs/'
$ export R_LIBS=~/.R/libs/
$ echo 'R_LIBS=~/.R/libs/'
$ echo 'R_LIBS=~/.R/libs/' >> ~/.Renviron
#Download the ncdf package from CRAN
#All this can be done in a temporary area ... (?)
$ tar xvzf ncdf_1.6.tar.gz
$ R CMD INSTALL ncdf
$ history