kaskr / adcomp

AD computation with Template Model Builder (TMB)
Other
177 stars 80 forks source link

Supressing output #41

Closed bchasco closed 10 years ago

bchasco commented 10 years ago

This is a trivial question, but is there a way to suppress the output. tracemgc=FALSE and tracepar=FALSE don't seem to do it. I found the cat function in MakeADFun for tracemgc, and it seems that setting it to FALSE should do the trick.

Thanks, Chasco

kaskr commented 10 years ago

To disable tracing from the inner optimizer do obj$env$inner.control$trace <- FALSE Output of outer max norm of the gradient is disabled by obj$env$tracemgc <- FALSE

bchasco commented 10 years ago

Brilliant. I'm beginning to understand the naming hierarchy. This makes knitr and sweave a lot cleaner. Thanks, Brandon