You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

It is only possible to look at high rate date for this project on ustar, so I've wanted to get R going.  Initially, I was getting error messages saying that the packages we had were built for an earlier version of R (barolo is at 3.3), with different "internals" than the current version (3.5 on ustar).  Thus, I had to build packages.

Following the instructions at: https://www.eol.ucar.edu/content/installing-and-using-r, I did:

> install.packages(c("digest", "RNetCDF","splusTimeDate","splusTimeSeries", "quantreg","SparseM","Rcpp","RUnit","lattice","maps", "gWidgets2","gWidgets2tcltk"))

where I had to add "digest" to the list to get the install to work.

I tried the described install of the eol packages, but this failed, so I had to go to source.  I saw that Gary had installed R to ~daq/R, so following the instructions at: https://wiki.eol.ucar.edu/sew/R/EOL, I did:

cd ~daq/R

git clone https://github.com/ncareol/R-eol.git

to create a ./R-eol directory here.  The instructions say to:

cd ./R-eol/packages

./build.sh -c -e -i -t

However, this again failed with the same version error.  It turns out that build.sh assumes that the packages are locally installed at /usr/local/lib/R/site-library, but the install.packages() function put everything in

~/R/x86_64-redhat-linux-gnu-library/3.5.

I cheated (as usual for me) and simply linked ..../site-library to ..../3.5 and repeated the ./build.sh command.  Eventually, the build succeeded.

Better would to have figured out the build.sh script to point it to the correct subdirectory, but.....

Now to look at data!

  • No labels