change r package install folder code example Example: libpath r library("somePackage", lib.loc=.libPaths()[-1])