[R] Turning off return warning messages.
Paul Roebuck
roebuck at odin.mdacc.tmc.edu
Wed Jul 20 07:49:33 CEST 2005
On Wed, 20 Jul 2005, Steve Su wrote:
> Is there a way I can turn off the following warning message
> for using multi-argument returns?
>
> multi-argument returns are deprecated in: return(p1, p2, p3, p4)
doubleEm <- function(p1, p2, p3, p4) {
return(list(p1 = p1*p1,
p2 = p2*p2,
p3 = p3*p3,
p4 = p4*p4))
}
res <- doubleEm(1, 2, 3, 4)
cat("p3 =", res$p3, "\n")
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
More information about the R-help
mailing list