.libPaths() ordering and immutable site library for staged package rollout
Migrating a small R application package without stopping existing sessions requires a clear library path boundary between the current and candidate package trees. .libPaths() defines an ordered search list; library() loads from the first tree containing the package. A namespace is loaded once per session, so a running process continues to use the code it loa