1 2 3 4 5 6 7
addRLibPath () { if [[ -d "$1/library" ]]; then addToSearchPath R_LIBS_SITE "$1/library" fi } addEnvHooks "$targetOffset" addRLibPath