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