Hi all, several packages print messages during loading. How do I avoid to see them when the packages are in the defaultPackages? Here is an example. With this in ~/.Rprofile ,----[ ~/.Rprofile ] | old <- getOption("defaultPackages") | options(defaultPackages = c(old, "filehash")) | rm(old) `---- I get as last line when starting R: ,---- | filehash: Simple key-value database (2.2-1 2012-03-12) `---- Another package with (even more) prints during startup is tikzDevice. How can I avoid to get these messages? Regards, Andreas
Helios de Rosario
2013-Jul-15 12:39 UTC
[R] suppress startup messages from default packages
> Hi all, > > several packages print messages during loading. How do I avoid tosee> them when the packages are in the defaultPackages? > > Here is an example. > > With this in ~/.Rprofile > ,----[ ~/.Rprofile ] > | old <- getOption("defaultPackages") > | options(defaultPackages = c(old, "filehash")) > | rm(old) > `---- > > I get as last line when starting R: > ,---- > | filehash: Simple key-value database (2.2-1 2012-03-12) > `---- > > Another package with (even more) prints during startup istikzDevice.> >How can I avoid to get these messages?There are several options in ?library to control the messages that are displayed when loading packages. However, this does not seem be able to supress all the messages. Some messages are defined by the package authors, because they feel necessary that the user reads them. Helios De Rosario> Regards, > AndreasINSTITUTO DE BIOMEC?NICA DE VALENCIA Universidad Polit?cnica de Valencia ? Edificio 9C Camino de Vera s/n ? 46022 VALENCIA (ESPA?A) Tel. +34 96 387 91 60 ? Fax +34 96 387 91 69 www.ibv.org Antes de imprimir este e-mail piense bien si es necesario hacerlo. En cumplimiento de la Ley Org?nica 15/1999 reguladora de la Protecci?n de Datos de Car?cter Personal, le informamos de que el presente mensaje contiene informaci?n confidencial, siendo para uso exclusivo del destinatario arriba indicado. En caso de no ser usted el destinatario del mismo le informamos que su recepci?n no le autoriza a su divulgaci?n o reproducci?n por cualquier medio, debiendo destruirlo de inmediato, rog?ndole lo notifique al remitente.
On Jul 15, 2013, at 4:11 AM, Andreas Leha wrote:> Hi all, > > several packages print messages during loading. How do I avoid to see > them when the packages are in the defaultPackages?I'm pretty sure this has been asked before (although the wrinkle of adding a package to default packages may not have been part of that discussion.) Have you done any searching of the Archives?> > Here is an example. > > With this in ~/.Rprofile > ,----[ ~/.Rprofile ] > | old <- getOption("defaultPackages") > | options(defaultPackages = c(old, "filehash")) > | rm(old) > `---- > > I get as last line when starting R: > ,---- > | filehash: Simple key-value database (2.2-1 2012-03-12) > `---- > > Another package with (even more) prints during startup is tikzDevice. > > How can I avoid to get these messages?On my machine typing suppress<tab> brings up an option of: suppressPackageStartupMessages You should append a leading "?" and read further. -- David Winsemius Alameda, CA, USA