# NOT RUN {
orig <- setLibPaths("~/newProjectLib") # will only have 2 paths,
# this and the last one in .libPaths()
.libPaths() # see the 2 paths
setLibPaths(orig) # reset
.libPaths() # see the 2 original paths back
# will have 2 or more paths
setLibPaths("~/newProjectLib", standAlone = FALSE) # will have 2 or more paths
# }
Run the code above in your browser using DataLab