Отключение сообщения о загрузке пакета в Sweave

Я загружаю optmatch в документ Sweave следующим образом:

<>=
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's 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

Как видите, я пробовал все, что мог, чтобы отключить сообщение о загрузке пакета, но безуспешно. Я предполагаю, что это потому, что они просто использовали прямую cat () или что-то в этом роде, но это очень раздражает. Есть какие-нибудь мысли о том, как заставить это замолчать, чтобы те, кто читает мой последний, красивый, LaTeX ified PDF, не должны были читать о RELAX-IV?

Другие вещи, которые, похоже, не работают (возьмите из указателя Андри на связанный поток ):

suppressMessages(library(optmatch))
suppressPackageStartupMessages(require("optmatch"))

Я должен отметить, что это довольно очевидная проблема R, а не проблема Sweave, поскольку сообщения появляются и в R.

5
задан Community 23 May 2017 в 12:11
поделиться