Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ build-cran:
favicons: ${favicons}

export-favicon = \
@sz=$$(sed 's/.*x\([[:digit:]]*\)\.png/\1/' <<<"$@") \
&& set -x; \
@sz=$$(echo "$@" | sed 's/.*x\([[:digit:]]*\)\.png/\1/'); \
inkscape -w $$sz -h $$sz --export-area $1 --export-filename=${@D}/tmp-${@F} $< \
&& pngcrush -q ${@D}/tmp-${@F} $@ && rm ${@D}/tmp-${@F}
&& pngcrush -q ${@D}/tmp-${@F} $@ \
&& ${RM} ${@D}/tmp-${@F}

${favicons_small}: figures/logo.svg | pkgdown/favicon
$(call export-favicon,-11:1000:181:1192)
Expand Down
8 changes: 8 additions & 0 deletions R/unload.r
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,18 @@ purge_cache = function () {

#' @keywords internal
unload_mod = function (mod_ns, info) {
UseMethod('unload_mod', info)
}

`unload_mod.box$mod_info` = function (mod_ns, info) {
call_hook(mod_ns, '.on_unload', mod_ns)
deregister_mod(info)
}

`unload_mod.box$pkg_info` = function (mod_ns, info) {
invisible(NULL)
}

#' @keywords internal
unload_mod_recursive = function (mod_ns, info) {
UseMethod('unload_mod_recursive')
Expand Down
2 changes: 0 additions & 2 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ navbar:
href: articles/contributing.html
- text: Module environments
href: articles/mod-envs.html
- text: Module access benchmark
href: articles/extract-benchmark.html

template:
bootstrap: 5
Expand Down
File renamed without changes.