[R] Hiding message

R. Michael Weylandt michael.weylandt at gmail.com
Wed Nov 30 04:37:18 CET 2011


What does your code look like that you see such messages repeatedly? I
only see those message upon loading a package: maybe move the
library() call outside the loop.

Also, the suppressPackageStartupMessages() function can hide them, but
you should first figure out for yourself why they are there.

Michael

On Tue, Nov 29, 2011 at 9:39 PM, Aldo <michael.v.clawson at gmail.com> wrote:
> So I am receiving messages in a loop
>
> "The following object(s) are masked from..."
>
> I tried
>
>  triedoptions(warn=-1) and options(show.error.message:=FALSE) but it still
> tells me
>
> "The following object(s) are masked from..."
>
> repeatedly, and my problem is that it masks the print statement from my
> function....
>
> Any ideas?
>
> Thanks
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Hiding-message-tp4121625p4121625.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list