change default library path in r code example Example: libpath r library("somePackage", lib.loc=.libPaths()[-1])