I load optmatchinto the Sweave document as follows:
<<myCodeBlock, echo=FALSE>>=
library(optmatch, quietly=TRUE)
@
You're loading optmatch, by Ben Hansen, a package for flexible
and optimal matching. Important license information:
The optmatch package makes essential use of D. P. Bertsekas
and P. Tseng RELAX-IV algorithm and code, as well as
Bertsekas' AUCTION algorithm and code.
Bertsekas and Tseng freely permit their software to be used for
research purposes, but non-research uses, including the use of it
to 'satisfy in any part commercial delivery requirements to
government or industry,' require a special agreement with them.
By extension, this requirement applies to any use of the
fullmatch() function. (If you are using another package that has
loaded optmatch, then you will probably be using fullmatch indirectly.)
For more information, enter relaxinfo() at the command line
As you can see, I tried my best to silence the package download message, but to no avail. I guess this is because they just used straightforward cat()or something like that, but it can be annoying. Any thoughts on how to silence so that those who read my final, beautiful, LaTeXified PDF do not read about RELAX-IV?
Other things that don't seem to work (take the Andrie pointer to the associated thread ):
suppressMessages(library(optmatch))
suppressPackageStartupMessages(require("optmatch"))
I should point out that this is obviously a R problem, not a Sweave problem, as messages also appear in R.