The function callmultmoments
computes moments of the normal distribution.
The function automatically prints "Sum of powers is odd. Moment is 0."
if the sume of the powers is odd. Is there any way to supress that under the condition that the original function should stay untouched.
Ex:
require(symmoments)
# Compute the moment for the 4-dimensional moment c(1,1,3,4):
m.1134 <- callmultmoments(c(1,1,3,4))
EDIT:
As described here we can use
## Windows
sink("nul")
...
sink()
## UNIX
sink("/dev/null") # now suppresses
.... # do stuff
sink() # to undo prior suppression, back to normal now
However, I am writing a package so I want it to be platform independent. Any ideas what to do instead?