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.