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

Feature request: Warning for more $phiXXX and $etaXXX #391

Open
billdenney opened this issue Aug 29, 2023 · 1 comment
Open

Feature request: Warning for more $phiXXX and $etaXXX #391

billdenney opened this issue Aug 29, 2023 · 1 comment

Comments

@billdenney
Copy link
Contributor

I tried to access fit$etaH for a model just now, and I got NULL back. When I tried to access fit$phiRSE I got the helpful warning that I needed to use addCwres() to make it work.

How hard would it be to add that warning to all the related parameters? I'm guessing that it would be all the $phiXXX and $etaXXX calls.

if (any(names(x[[1]]) !="CWRES")) warning("this requires 'CWRES' in fit (use `addCwres()`)", call.=FALSE)

@mattfidler
Copy link
Member

phiH is actually in the object. The rest are derived. It is a bit more difficult to add warnings when accessing actual internal objects instrad of methods accessed by $. Still it is possible....

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

No branches or pull requests

2 participants