summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph C Wang <joequant@gmail.com>2015-07-04 13:21:35 +0800
committerJoseph C Wang <joequant@gmail.com>2015-07-04 13:22:55 +0800
commitfe39ef5faee7c66a87053096c41ab1bbace9c26a (patch)
tree98c885377d89a1446e922a117c32cc7d4a524fe7
parent335572170b7185d24b8515f5909d091ae117d458 (diff)
downloadswig-fe39ef5faee7c66a87053096c41ab1bbace9c26a.tar.gz
suppress warning for ExternalReference print
-rw-r--r--Lib/r/r.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/r/r.swg b/Lib/r/r.swg
index 126611d61..a6014965e 100644
--- a/Lib/r/r.swg
+++ b/Lib/r/r.swg
@@ -264,8 +264,8 @@ x
setAs('ExternalReference', 'character',
function(from) {if (!is.null(from$"__str__")) from$"__str__"()})
-setMethod('print', 'ExternalReference',
-function(x) {print(as(x, "character"))})
+suppressWarnings(setMethod('print', 'ExternalReference',
+function(x) {print(as(x, "character"))}))
%}