kaskr / TMB_contrib_R

9 stars 6 forks source link

Error in running model b/c capitalization #5

Closed kellijohnson-NOAA closed 6 years ago

kellijohnson-NOAA commented 6 years ago

obj is written as Obj which normally doesn't throw an error unless you do not name the optimization Obj in your global workspace.

https://github.com/kaskr/TMB_contrib_R/blob/b44fd1ad1fa717a78ef45dd2ae6eb346363f1dd4/TMBhelper/R/Optimize.R#L93

James-Thorson commented 6 years ago

please try it now

kellijohnson-NOAA commented 6 years ago

Yes it appears to be working now. Thank you @James-Thorson.