Suppress message at package load - Creating a generic function for ‘print’ from package ‘base’ in package <some package>

This commit is contained in:
sbpcs59 2016-03-10 20:29:15 -08:00
commit 2ea53f2dd1

View file

@ -264,8 +264,8 @@ x
setAs('ExternalReference', 'character',
function(from) {if (!is.null(from$"__str__")) from$"__str__"()})
suppressWarnings(setMethod('print', 'ExternalReference',
function(x) {print(as(x, "character"))}))
suppressMessages(suppressWarnings(setMethod('print', 'ExternalReference',
function(x) {print(as(x, "character"))})))
%}