Message-ID: <CCE952776B6679469977532BD863C39C35677E94@Lewis.autuni.aut.ac.nz>
Date: 2013-01-20T20:22:05Z
From: Steve Taylor
Subject: sem package, suppress warnings
In-Reply-To: <CAB0Y+LR0Y5Me=3vASWAwjw4jAvJY2JeV1TJWpVZ+QYOGBuB2JQ@mail.gmail.com>
Have you tried
suppressWarnings(sem(mod, S = as.matrix(dataset), N = 1000, maxiter = 10000, warn = FALSE))
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
> Behalf Of Dustin Fife
> Sent: Saturday, 19 January 2013 5:32a
> To: r-help
> Subject: [R] sem package, suppress warnings
>
> Hi,
>
> I'm using the sem package under conditions where I know beforehand that
> several models will be problematic. Because of that, I want to suppress
> warnings. I've used the following code
>
> sem(mod, S = as.matrix(dataset), N = 1000, maxiter = 10000,
> warn = FALSE)
>
> But I still get warnings. I've also tried adding "check.analytic = FALSE,
> debug = FALSE," and that doesn't seem to do it either. Any ideas why it's
> not working?
>
> It may be important to note that the command above is wrapped within a
> function and I'm using "try()" to avoid errors.
>
> Thanks in advance!
>
>
> --
> Dustin Fife
> PhD Student
> Quantitative Psychology
> University of Oklahoma
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.