Skip to content

Commit

Permalink
Fix empty devlist; fix pkgdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Oct 2, 2023
1 parent fda92fe commit 3c69a76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/bgplot3d.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
safe.dev.off <- function(which = dev.cur(), prev = dev.prev()) {
force(prev)
grDevices::dev.off(which)
dev.set(prev)
if (length(dev.list()))
dev.set(prev)
}

dev.off <- function(...) stop("Use safe.dev.off() instead!")
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ reference:
- checkDeldir
- Buffer
- gltfTypes
- safe.dev.off
- title: General documentation
- contents:
- rgl-package
Expand Down

0 comments on commit 3c69a76

Please sign in to comment.