lib.loc
A minor thingy: "lib.loc" specifies where R should look for dependencies during the installation process. Does not control where the package will be installed. "lib" specifies where the package will actually be installed. This is the argument one needs to use to ensure the package gets installed into the desired directory. So my guess is that we would need just lib in the scripts Cheers!