You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, version 1.2 does not execute .onUnload function if defined within an R package. I'm not sure this an intended behaviour as this means that any clean up code a package maintainer defined is not executed. For instance shiny::removeInputHandler is commonly placed in .onUnload to clean up after shiny::registerInputHandler in .onLoad.
Execute pkgload::load_all("."). Only ".onLoad" is printed regardless of value provided for argument reset.
The text was updated successfully, but these errors were encountered:
nextpagesoft
changed the title
Function ".onUnload" is not executed with "load_all" is called
Function ".onUnload" is not executed when "load_all" is called
Mar 1, 2021
It does if you explicitly call unload(), however pkgload::load_all() no longer fully unloads the namespace as of #133, as doing so can cause crashes for packages using compiled code.
So this is working as designed. If your usage is assuming the uload is called you will need to explicitly call unload() before running load_all().
Hi, version 1.2 does not execute
.onUnload
function if defined within an R package. I'm not sure this an intended behaviour as this means that any clean up code a package maintainer defined is not executed. For instanceshiny::removeInputHandler
is commonly placed in.onUnload
to clean up aftershiny::registerInputHandler
in.onLoad
.Steps to reproduce:
.onLoad
and.onUload
as:pkgload::load_all(".")
. Only".onLoad"
is printed regardless of value provided for argumentreset
.The text was updated successfully, but these errors were encountered: