greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
527 stars 63 forks source link

example code of opt in the reference manual #271

Open yangchino1 opened 5 years ago

yangchino1 commented 5 years ago

The parameter for hessian option in opt() is hessian , but in the example code it becomes hessians, e.g. o <- opt(m2, hessians = TRUE), which gives an error when running example(inference,run.dontrun=T).

goldingn commented 5 years ago

Ah good point, thanks!

Yes, I was flip-flopping on the name when writing that code and example. Will fix next time I get a chance to patch things up. I'll also look into running all the examples in the test suite.