We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e3b7c3 commit 7f4aa1fCopy full SHA for 7f4aa1f
2 files changed
NEWS.md
@@ -1,5 +1,10 @@
1
# devtools (development version)
2
3
+* `install(reload = TRUE)` now calls `pkgload::unregister()` instead
4
+ of `pkload::unload()` (#2349). This allows the package to keep
5
+ functioning if it is still in use in the R session (e.g. through
6
+ event handlers).
7
+
8
* `test()` no longer calls `load_all()` twice. `test_active_file()`
9
now calls `load_all()` via testthat.
10
R/install.R
@@ -96,7 +96,7 @@ install <-
96
was_attached <- is_attached(pkg)
97
98
if (reload && was_loaded) {
99
- pkgload::unload(pkg$package)
+ pkgload::unregister(pkg$package)
100
}
101
102
pkgbuild::with_build_tools(required = FALSE,
0 commit comments