adcomp
adcomp copied to clipboard
Update `obj$report()` when `intern=TRUE`
Description:
obj$report() doesn't seem to work when MakeADFun(..., intern=TRUE)
Reproducible Steps:
It appears that when intern=TRUE, the obj$env$random and obj$env$last.par are no longer visible. This then appears to cause a problem in obj$report() using the default argument par = last.par.
I think the issue was already resolved for obj$env$parList() where it internally is replacing obj$report() with as.list(obj$env$reportenv). Could obj$report() also be redefined along these lines?
Current Output:
obj$report() throws an error message "Wrong parameter length."
Expected Output:
normal tagged list of REPORTed vars.
TMB Version:
GitHub master branch install
R Version:
R version 4.1.0 (2021-05-18)
Operating System:
Windows