Paket dapat menyediakan fungsi untuk dipanggil saat dimuat, dipasang, dilepas, atau dibongkar.
.onLoad(libname, pkgname)
.onAttach(libname, pkgname)
.onUnload(libpath)
.onDetach(libpath)
.Last.lib(libpath)
| Parameter | Deskripsi |
|---|---|
libname |
a character string giving the library directory where the package defining the namespace was found. |
pkgname |
a character string giving the name of the package. |
libpath |
a character string giving the complete path to the package. |