Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update obj$report() when intern=TRUE #355

Open
James-Thorson opened this issue Feb 5, 2022 · 0 comments
Open

Update obj$report() when intern=TRUE #355

James-Thorson opened this issue Feb 5, 2022 · 0 comments
Labels

Comments

@James-Thorson
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants