This will remove all but the top level of .libPaths(), which should be the base packages
installed with R, and adds a second directory, the libPath.
newLibPaths(libPath)
| libPath | A path that will be the new .libPaths()[1] |
|---|
Invisibly the new .libPaths()
# NOT RUN { newLibPaths("testPackages") .libPaths() # new .libPaths # }