18 lines
445 B
Shell
Executable file
18 lines
445 B
Shell
Executable file
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
R_HOME=/opt/R/${R_VERSION}/lib/R
|
|
"${R_HOME}/bin/R" --version
|
|
"${R_HOME}/bin/Rscript" -e 'sessionInfo()'
|
|
|
|
# List R devel dependencies
|
|
gcc --version
|
|
g++ --version
|
|
gfortran --version
|
|
|
|
# List shared library dependencies (e.g. BLAS/LAPACK)
|
|
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${R_HOME}/lib ldd "${R_HOME}/lib/libR.so"
|
|
|
|
DIR=${DIR} "${R_HOME}/bin/Rscript" /test/test.R
|