If you want to install V8, rstan R packages on TSUBAME, please try the following procedures.
※ confirmed with the version V8: 3.4.2 and rstan:2.19.3 .
There are a lot of dependency packages for that, but they are easy to install it so please download and install dependencies by R CMD INSTALL before trying to install V8 and rstan.
* V8
$ module load gcc cuda openmpi r v8
$ R CMD INSTALL -l ~/Rlib /path/to/V8_3.4.2.tar.gz
* rstan
$ module load gcc cuda openmpi r
$ mkdir ~/.R/
$ vi ~/.R/Makevars <----edit as follows
CXX14FLAGS=-O3 -Wno-unused-variable -Wno-unused-function
CXX14 = g++ -std=c++1y -fPIC
$ R CMD INSTALL -l ~/Rlib rstan_2.19.3.tar.gz