As recommended in the "Compiled Code" chapter of the book "R packages" (Version 2) by Hadley Wickham and Jenny Bryan.

.onUnload(libpath)

Arguments

libpath

Argument