[rkward] rkward/rbackend/rpackages/rkward/R: Suppress warnings from RK.resize(), this time for real.
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Jan 29 16:34:52 UTC 2016
Git commit c3c0cbc713f3ddbaa856a0433adb4061d342c06c by Thomas Friedrichsmeier.
Committed on 29/01/2016 at 16:34.
Pushed by tfry into branch 'master'.
Suppress warnings from RK.resize(), this time for real.
M +1 -1 rkward/rbackend/rpackages/rkward/R/internal_graphics.R
http://commits.kde.org/rkward/c3c0cbc713f3ddbaa856a0433adb4061d342c06c
diff --git a/rkward/rbackend/rpackages/rkward/R/internal_graphics.R b/rkward/rbackend/rpackages/rkward/R/internal_graphics.R
index ffcee92..8982842 100644
--- a/rkward/rbackend/rpackages/rkward/R/internal_graphics.R
+++ b/rkward/rbackend/rpackages/rkward/R/internal_graphics.R
@@ -16,7 +16,7 @@
# Fetch the current size of the given RK() device from the frontend, and redraw
"RK.resize" <- function (devnum) {
# Note: RK.resize() often fails, if something is currently being plotted. That's usually benign, and should not produce warning messages.
- suppressMessages (try (.Call ("rk.graphics.device.resize", as.integer (devnum)-1, PACKAGE="(embedding)")))
+ try (.Call ("rk.graphics.device.resize", as.integer (devnum)-1, PACKAGE="(embedding)"), silent=TRUE)
}
#' @include internal.R
More information about the rkward-tracker
mailing list