Suppress message at package load - Creating a generic function for ‘print’ from package ‘base’ in package <some package>
This commit is contained in:
parent
88e2ce8556
commit
2ea53f2dd1
1 changed files with 2 additions and 2 deletions
|
|
@ -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"))})))
|
||||
%}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue